Homework assignments

you might want to check for m,n < 0.

And you do want to put some test code in here with "assert" statements.