code finish d problem