Process-oriented programming sample codes