ported t2 example