Changed define to class

changed the "define" keyword to "class"