Adding simple D implementation