converted sample app in plugin form for build purposes