Updated Cash Register code