Added factorial example code