Update ex2 mainfile