A functional V1 with a new demo code