Added Energy framework and implemented