Added more functionality  to constructor function by using Prototype Property