creating input fields array with getter and setter