Energy Transfer by Work and Heat