Work on additional functions to work with arrays aswell