add sample extension code