add sample code back, as a separate file this time