added examples of how to create a class with methods using node