add sample code and memo