Added input function
(only accepts numerical values)