inheriting methods from base classes