finish Preference function
Merge pull request #43 from usc-588/favorite

finish Preference function