HOW THE PROGRAM WORKS?