added sage solution
added sage output