Refactored to initialize Group and Categories data in constructor