D version
D version - removed unneeded imports