solved some exam preparation exercises