Issue #27: Step six partial implementation. Removed test cases, print statements and updated comments.