assignment #6 tasks #1 to #7