update homework
Updated code with vars for high & low