Thank you for your reply thelawprofessor.
I would like to broaden my question and give you some examples (only small portions). If you could briefly comment on each case so that I can know what is legal. In particular, how would I need to change each case to make it a non-infringing case...