hw3: completed probs 1-3; started 4