Class inheritance 90% working.

But class vars seems to be ballsed up.