(see the code present in main.bas)