Inheritance attempt

But JS is shit at OOP