still trying to get some example code to work