added example of simple TDM program