Change definitions

define ‘getInput’, ‘getPosition’ and ‘getUserState’ as variable
Modify the definition of 'parse'