added logic working with document without Employee class