updated exercise 6 with one last extra credit unfinished