corrected declaration of tuple in for_each
class keyword removed where was wrong