second commit

shared preferences functionality added and tested….wrap up in
subsequent commits