assignment 3: problems 1-5