Class design principle