Example of new object inheriting from constructor function