Implement D (I think)

Part D seems to work. Not sure why, but it does. I wouldn't have thought
doing just that would be enough, but it seems like it is?