Which object has more thermal energy?

 - a cherry pie at a temperature of 100°F
 - a cherry pie at a temperature of 130°F
The two cherry pies have the same mass but different temperatures. Since the 130°F pie is hotter than the 100°F pie, it has more thermal energy.