Created very simple SessionFactory class