[NEW] added function for reading user input

First pull request