writing a program is for achieving a goal