using else if to let the machine choose between 3 or more blocks of code