finished assignment 4