applicative example for either