Assignment 3, problems 1,2