implement energy example via gauge module