add first document implementation