Solved the programming assignment.