adding getter method for individual object array value