now entities have a constructor