Chapter5 exercises done