worked on ex 3 - all that is left is documentation