Coding some model classes