prob 2 and 5 done