Fastapi tutorial. Pydantic defines BaseModel class.