Added entity hierarchy; very bare, but gets the job done.