JS4:Tasks4-8: all tasks