finished assignment #6