Adding examples of appending to an array

Added examples of appending to an array.