Solved a few problems from 1st assignment.