using for loop from book
added assertions to ensure array had correct contents
Merge branch 'development'