Initial sketch of freebase code