finished assignment #7