added more example code