example with arrays done