updated lab3 js1 arrays