assignment 4 problems 1-9