Implement inventory module

Should we bother with the leading/trailing whitespace? We don't elsewhere