exercises done for Ch.4