Homework for JS Application course.