entity design