Home work for JavaScript class.