Chapter6 exercises done