homework for js core 2