Added looped versions of simple programs