use the enum module to represent states