solved exercise 1.0-1.2 ex5w6