add D generator and samples