completed 2 and 3rd questions