finished make_array thanks to functionx.com/cpp/Lession12.htm