d
Finished code