Changed the design by extending SessionStorage