diff --git a/.idea/caches/deviceStreaming.xml b/.idea/caches/deviceStreaming.xml
new file mode 100644
index 00000000..d966f1b5
--- /dev/null
+++ b/.idea/caches/deviceStreaming.xml
@@ -0,0 +1,1450 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/markdown.xml b/.idea/markdown.xml
new file mode 100644
index 00000000..c61ea334
--- /dev/null
+++ b/.idea/markdown.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 9c8e7400..cf905821 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -1,6 +1,5 @@
-
-
+
\ No newline at end of file
diff --git a/src/main/kotlin/Archive.kt b/src/main/kotlin/Archive.kt
new file mode 100644
index 00000000..e621ecc3
--- /dev/null
+++ b/src/main/kotlin/Archive.kt
@@ -0,0 +1,5 @@
+
+class Archive(val name: String) {
+ val notes = mutableListOf()
+}
+
diff --git a/src/main/kotlin/ArchiveMenu.kt b/src/main/kotlin/ArchiveMenu.kt
new file mode 100644
index 00000000..e1e22586
--- /dev/null
+++ b/src/main/kotlin/ArchiveMenu.kt
@@ -0,0 +1,56 @@
+
+import menu.NoteMenu
+import java.util.Scanner
+
+class ArchiveMenu {
+
+ private val archives = mutableListOf()
+ private val scanner = Scanner(System.`in`)
+
+ fun start() {
+ val menu = Menu("Список архивов")
+
+ menu.addItem("Создать архив") { createArchive() }
+ menu.addItem("Открыть архив") { openArchive() }
+ menu.addItem("Выход") {
+ println("Выход из программы")
+ System.exit(0)
+ }
+
+ menu.show()
+ }
+
+ private fun createArchive() {
+ println("Введите имя архива:")
+ val name = scanner.nextLine()
+
+ if (name.isBlank()) {
+ println("Имя не может быть пустым")
+ return
+ }
+
+ archives.add(Archive(name))
+ println("Архив создан")
+ }
+
+ private fun openArchive() {
+ if (archives.isEmpty()) {
+ println("Архивов нет")
+ return
+ }
+
+ archives.forEachIndexed { index, archive ->
+ println("$index. ${archive.name}")
+ }
+
+ println("Введите номер архива:")
+ val index = scanner.nextLine().toIntOrNull()
+
+ if (index == null || index !in archives.indices) {
+ println("Неверный номер")
+ return
+ }
+
+ NoteMenu(archives[index]).start()
+ }
+}
\ No newline at end of file
diff --git a/src/main/kotlin/Main.kt b/src/main/kotlin/Main.kt
index aade54c5..57d57f22 100644
--- a/src/main/kotlin/Main.kt
+++ b/src/main/kotlin/Main.kt
@@ -1,3 +1,7 @@
-fun main(args: Array) {
- println("Hello World!")
-}
\ No newline at end of file
+
+
+fun main() {
+ val archiveMenu = ArchiveMenu()
+ archiveMenu.start()
+}
+// Д
\ No newline at end of file
diff --git a/src/main/kotlin/Menu.kt b/src/main/kotlin/Menu.kt
new file mode 100644
index 00000000..1500f5d3
--- /dev/null
+++ b/src/main/kotlin/Menu.kt
@@ -0,0 +1,48 @@
+
+
+
+import java.util.Scanner
+
+
+class Menu(private val title: String) {
+
+ private val items = mutableListOf