binary function

Binary choice example