examples of using pin