Alternative class design