Simple use of If and While