Sample code for Lightning