added confitional operator
added ^ operator to sample code
-a