homework from coursera ssjs course