move Loop class