Added Array and Object Function

Added array and Object Function with return values.