problems 3a and 3b written up; only part c remaining