Adds append method to array