more correct answer to problem 3 parts a and b