solutions to problems from set2