extracted abstract class for the prefsmodel for the use in android