shared preferences part is completed.