added outline of vision code (doesn't compile)