another example with an constructor function, instance methods and a class method