Solved rest of problems of assignment3