fixed code in Method of Types - needed some newline characters