Adding solution to excercise 01