added if controle exercise b: change exercise a to accept numerical data. need to fix to allow numerical and string