Updated example code to use slist 

Updated example code to use slist instead of using a string.