task 6 parts 1 and 2