Bug-22: Add Word and WordStorage class

@john-hu Please help me review this patch. Thank you.
I found that I should try to close "input" first.