Added path in gradle.build. Added a main function in the main part.
Everything runs with gradle run.