Code for USU Math 5610