Adds child getter method (pass index as argument)