Added a custom inventory class
Added some event listeners