Sample Code for Lightning