Use an enum constructor, instance variable, and method

http://ideone.com/0anDBm