diff --git a/.scalafmt.conf b/.scalafmt.conf
new file mode 100644
index 0000000000000000000000000000000000000000..ccddde2d0da891fdee7ac32b8263b945ca120ae4
--- /dev/null
+++ b/.scalafmt.conf
@@ -0,0 +1,12 @@
+# https://diamantidis.github.io/2020/05/17/ci-with-github-actions-for-scala-project
+version = "3.3.0"
+
+runner.dialect = scala3
+rewrite.scala3.convertToNewSyntax = true
+
+maxColumn = 120
+
+indent.main = 4
+indent.callSite = 4
+
+project.git = true
diff --git a/build.sbt b/build.sbt
new file mode 100644
index 0000000000000000000000000000000000000000..3814790ff439baca297f2973d999f9ece3a3ecf7
--- /dev/null
+++ b/build.sbt
@@ -0,0 +1,5 @@
+lazy val root = (project in file("."))
+  .settings(
+    name := "prog-2",
+    scalaVersion := "3.1.0"
+  )
diff --git a/project/build.properties b/project/build.properties
new file mode 100644
index 0000000000000000000000000000000000000000..9edb75b77c2818304334a8373ec30538db7d0730
--- /dev/null
+++ b/project/build.properties
@@ -0,0 +1 @@
+sbt.version=1.5.4