add double list basic code