Use class variables instead Class.

Now we can use inheritance.