Added in a while function that returns an array March 18, 2013