Create the SearchHistory function. This should complete the necessary changes in User.cs.