implemented FindTreasure() and Factorial()