write a data processing program by owenleong