D3 implementations for code challenge