Making a function like this part of a class

Printable View