How can I write a class or something so I can run and test the following code?

Printable View