assignment 2 q4&5