commandFactory using global enum
commandFactory takes in CommandType
move CommandFactory to default package