lab exercises for JavaScript class