miscellaneous exercise on chapter 1