Wrapped up Chapter 5 exercises