code with working vision

Vision is operational with this code.