I'm losing the will to live now.

I have created a class that simply initializes a number an then has a function that returns it. If I run the class normally it will return the number fine but...