When adding baseClass as the prototype wasnt doint objectcreate so functions were being overwritten