working example implementation code