add sample code to use goroutine