added exercise codes from chapter 1 of KNR