solved the selfstudy-exercises for OOP2