Converted printing method into a class method.
Deleting comments