Second chapter exercises