added a while loop template and ife for if expression