Implemented the store.

@sam-github Please review.