added sample controller