solved problems

Solved all the exercises.