Six steps for creating a loop