Solved homework Class 2 exercises #2, #3, #4