Solved P36-41 (with some notes)