Instead of having the setting of a value in the default case, moved it below the switch to make for a better understanding.