solved problem 1
problems 1 through 4