adding chapter6 exercises