Make doc an attr_reader