Info 340 homework assignment 2