Now prints the value we want to attach to compartment
if trying to add zero or negative value then throw a range error