task 5b and 6 done