a new example using if and else