Add D solution