Using default case on switch instead of 0