module RT for utility functions
lecture 7 without Monad; Parsing template