Robustness

So far, the program is not very robust, since the input values are not checked for validity.

Need to check that: