Can someone xplain why this is better than using a switch statement? Just curious.