An Object Oriented Approach for Document Management