solved the exercises