A sample of copper with a mass of 50.0 grams goes from an initial temperature of 22.0°C to a final temperature of 41.6°C. Calculate the change in thermal energy, and state whether it was gained or lost.