made a start on skiena problems from chapter 3