working on understanding functions and a javascript cart