generated working implementation for datamodel and functions