task 8 and 9 almost complete