adding model classes and validation style