Added Loop class