Assignment 1 from my JavaScript college course.