start rewriting addItems method, added argument for constructor