First commit- only problems 1-3 done