By creating a parent class for all types of storages it would be possible to change to different types of storage.