ASSIGNMENT #6 Solution