problem 3 (unfinished)