Write Entity constructor and update methods