Deal with user's inputs