task 6 almost solved