Basic tasks with arrays