Removed "print" function.

The "print" function should not be used inside methods of a class.