actually finished assignment 6