Adding resize() method
Methods are now defined on the prototype not the instance