Adding ch04 exercises