store() and read() expanded, added class Main