started problem 33 (added code)