sample code handling creating plugin