Implemented id for model class