implement task #6