shared preference were adopted
grobal variables are changed into the class members
library is added