Assignment 3: Solutions to problem 4,5,6