moved old example to legacy code