SimpleLoop Solution