gregor fixed the simple program based on instructions by Jeffy