Solution to problems in CS 598R