Add id and print function to entity