made gn_qua program
converted array to ArrayList