Ten joules of heat energy are transferred to a sample of an ideal gas at a constant volume. What is the change in internal energy?