I implemented loops