solutions for assignment-3