Creating a new instance with prototype methods