new class to store all data in prefernces