Entity code example