Class design