LAPPS example code.