add emma sample code