added code to give arrays a remove function