Added skeleton for the "create samples" event handler