adding additional array operations, pop and shift