Untested Working code - verified input 1