added example of if and else