bit of example restructuring + arrays example