homework for js core 1