Assignment 2 chapter problems