ex. 6.6: comment out foreach test