Added Classes to Ternimal and NonTernimal, to allow styling