debugged ifgreater; added tests from coursera