write and test simple programs