Two simple programs