Add Word and WordStorage class

@john-hu Please help me review this patch. Thank you.
We should think a way to minimize the indentation level.