changed adds item method to accept 2 arguments