Added sample values to an array

Testing how to create a picture file and what size it should be based on
the sample length