demonstrate tm code