example of input method