Hw3 problems 2-5