#2 #3 Catching invalid input