Sample Code for Headspring