Added print statements and comments