Working with arrays (we will use an array of double as example)