added methods to store class with tests