added comments explaining each print statement