Code snippets from me learning D3