Added getHistory() function to return user's stats history