state machine udkast + lille rettelse i program