prob 1-4

finished problems 1-4