added sample for shared context