added inventory functionality