working through some examples, up to chapter on arrays