sample D3 basic code