Explain program in more detail