Use length variable to help copy an array