add array and string class practice