Add loops to rubybasics