Implemented repeat loop sentence and partially implemented for loop sentence