fixed error and added recursion in excercise 1, ha II, sheet 1