reorg code in classes for karma integration