change entities syntax, add inheritance constructors