Wrote base class