convert properties to functions
add default switch conditions
add missing semicolon
convert properties to functions
update method names to be more explicit
convert properties to functions
fixup example