This bit of code looks exactly right. The assignment called for tests of every n and m between 0 and 3, but don't worry about that.