finished T.agda