Framework code for building task oriented programs