class inheritance on prototype working