Implemented Classical Inheritence Model properly and defined functions on prototype