Intitial TypeScript version of Histogram store