Added demo1 and lua code