Add Constructor pattern with using prototypes to define methods