problem 2 in scheme
problem 3 in scheme