Assignment 3 from my JavaScript college course.