Implement ch9/01-arrays examples