Saving into array chosen class