sample code for stackMob.