first few exercises from chapter 2.