add lua sample code