sharedprefs implimentation
added init method