implement for, while, loop statements