Sesson Factory is change to main class