created the domain classes and tested it