week 4 ex 5 -- inventory script and first output