Assignment 4 from my JavaScript college course.