updated example to demonstrate conditional statement