Re-solved problems 1,3,5,6