Added factorial example.