Add offset example to demo6
(#449)