Refatoring Main. Jar with dependencies.