converted the sample project in plugin form