Update #02

Implemented loops to print output.