how to implement loops