class and for statement

class and for statement pass some tests partially.