Reference example of smo implementation