added predict to ex2