diff --git a/RentalProject-1/rental-proj/.idea/.gitignore b/RentalProject-1/rental-proj/.idea/.gitignore
new file mode 100644
index 0000000..26d3352
--- /dev/null
+++ b/RentalProject-1/rental-proj/.idea/.gitignore
@@ -0,0 +1,3 @@
+# Default ignored files
+/shelf/
+/workspace.xml
diff --git a/RentalProject-1/rental-proj/.idea/compiler.xml b/RentalProject-1/rental-proj/.idea/compiler.xml
new file mode 100644
index 0000000..2376ecc
--- /dev/null
+++ b/RentalProject-1/rental-proj/.idea/compiler.xml
@@ -0,0 +1,13 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/RentalProject-1/rental-proj/.idea/encodings.xml b/RentalProject-1/rental-proj/.idea/encodings.xml
new file mode 100644
index 0000000..aa00ffa
--- /dev/null
+++ b/RentalProject-1/rental-proj/.idea/encodings.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/RentalProject-1/rental-proj/.idea/jarRepositories.xml b/RentalProject-1/rental-proj/.idea/jarRepositories.xml
new file mode 100644
index 0000000..712ab9d
--- /dev/null
+++ b/RentalProject-1/rental-proj/.idea/jarRepositories.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/RentalProject-1/rental-proj/.idea/misc.xml b/RentalProject-1/rental-proj/.idea/misc.xml
new file mode 100644
index 0000000..e5d6295
--- /dev/null
+++ b/RentalProject-1/rental-proj/.idea/misc.xml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/RentalProject-1/rental-proj/pom.xml b/RentalProject-1/rental-proj/pom.xml
new file mode 100644
index 0000000..864992d
--- /dev/null
+++ b/RentalProject-1/rental-proj/pom.xml
@@ -0,0 +1,23 @@
+
+
+ 4.0.0
+
+ org.example
+ untitled9
+ 1.0-SNAPSHOT
+
+ 19
+ 19
+ UTF-8
+
+
+
+ com.google.code.gson
+ gson
+ 2.10.1
+
+
+
+
diff --git a/RentalProject-1/rental-proj/src/main/java/org/example/AllModules.java b/RentalProject-1/rental-proj/src/main/java/org/example/AllModules.java
new file mode 100644
index 0000000..fa4de4f
--- /dev/null
+++ b/RentalProject-1/rental-proj/src/main/java/org/example/AllModules.java
@@ -0,0 +1,42 @@
+package org.example;
+
+import java.util.ArrayList;
+
+public class AllModules {
+ public ArrayList games;
+ public ArrayList books=new ArrayList<>();
+ public ArrayList movies;
+ public ArrayList customers=new ArrayList<>();
+
+ public ArrayList getGames() {
+ return games;
+ }
+
+ public ArrayList getBooks() {
+ return books;
+ }
+
+ public ArrayList getMovies() {
+ return movies;
+ }
+
+ public ArrayList getCustomers() {
+ return customers;
+ }
+
+ public void setGames(ArrayList games) {
+ this.games = games;
+ }
+
+ public void setBooks(ArrayList books) {
+ this.books = books;
+ }
+
+ public void setMovies(ArrayList movies) {
+ this.movies = movies;
+ }
+
+ public void setCustomers(ArrayList customers) {
+ this.customers = customers;
+ }
+}
diff --git a/RentalProject-1/rental-proj/src/main/java/org/example/Book.java b/RentalProject-1/rental-proj/src/main/java/org/example/Book.java
new file mode 100644
index 0000000..f88d7a3
--- /dev/null
+++ b/RentalProject-1/rental-proj/src/main/java/org/example/Book.java
@@ -0,0 +1,37 @@
+package org.example;
+
+import java.util.Date;
+
+public class Book extends Item {
+ String writer;
+ String publisher;
+ String bookCover;
+
+ public Book(String title, String genre, String writer, Date releaseDate,String publisher,String bookCover, int id,boolean isAvailable ) {
+ super(title, genre, releaseDate, id,isAvailable);
+ this.writer = writer;
+ this.publisher=publisher;
+ this.bookCover=bookCover;
+ }
+
+ public String getTitle() {
+ return getName();
+ }
+
+ public String getGenre() {
+ return genre;
+ }
+
+ public String getAuthor() {
+ return writer;
+ }
+
+ public Date getReleaseDate() {
+ return releaseDate;
+ }
+
+ public int getID() {
+ return returnId();
+ }
+
+}
diff --git a/RentalProject-1/rental-proj/src/main/java/org/example/Customer.java b/RentalProject-1/rental-proj/src/main/java/org/example/Customer.java
new file mode 100644
index 0000000..badba7b
--- /dev/null
+++ b/RentalProject-1/rental-proj/src/main/java/org/example/Customer.java
@@ -0,0 +1,44 @@
+package org.example;
+
+import java.util.ArrayList;
+import java.util.List;
+
+public class Customer {
+ int id;
+ String name;
+ String email;
+ String phone;
+ String address;
+ List rentals=new ArrayList<>();
+ public Customer(String name, String email, String phone, String address, int id) {
+ this.id = id;
+ this.name = name;
+ this.email = email;
+ this.phone = phone;
+ this.address = address;
+ }
+
+ public int getId() {
+ return id;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public String getEmail() {
+ return email;
+ }
+
+ public String getPhone() {
+ return phone;
+ }
+
+ public List getRentals() {
+ return rentals;
+ }
+
+ public String getAddress() {
+ return address;
+ }
+}
diff --git a/RentalProject-1/rental-proj/src/main/java/org/example/Game.java b/RentalProject-1/rental-proj/src/main/java/org/example/Game.java
new file mode 100644
index 0000000..498700f
--- /dev/null
+++ b/RentalProject-1/rental-proj/src/main/java/org/example/Game.java
@@ -0,0 +1,41 @@
+package org.example;
+
+import java.util.Date;
+// "gameRate": 9,
+// "aboutGame": "Embark on an epic adventure as Link",
+// "manufacturer": "Nintendo"
+public class Game extends Item {
+ String company;
+ String aboutGame;
+ String director;
+ double gameRate;
+
+ public Game(String title, String genre, String company, Date releaseDate, int id,boolean isAvailable,String aboutGame,String director,double gameRate) {
+ super(title, genre, releaseDate, id,isAvailable);
+ this.company = company;
+ this.aboutGame=aboutGame;
+ this.director=director;
+ this.gameRate=gameRate;
+ }
+
+ public String getName() {
+ return title;
+ }
+
+ public String getCompany() {
+ return company;
+ }
+
+ public String getGenre() {
+ return genre;
+ }
+
+ public Date getReleaseDate() {
+ return releaseDate;
+ }
+
+ public int getId() {
+ return returnId();
+ }
+
+}
diff --git a/RentalProject-1/rental-proj/src/main/java/org/example/Item.java b/RentalProject-1/rental-proj/src/main/java/org/example/Item.java
new file mode 100644
index 0000000..a8bc176
--- /dev/null
+++ b/RentalProject-1/rental-proj/src/main/java/org/example/Item.java
@@ -0,0 +1,44 @@
+package org.example;
+
+import java.util.Date;
+
+public class Item {
+ private int id;
+ String title;
+ String genre;
+ Date releaseDate;
+ boolean isAvailable;
+
+ public String getName() {
+ return title;
+ }
+
+ public String getGenre() {
+ return genre;
+ }
+
+ public Date getReleasedate() {
+ return releaseDate;
+ }
+
+ public Item(String name, String genre, Date releaseDate, int id,boolean isAvailable) {
+ this.id = id;
+ this.title = name;
+ this.genre = genre;
+ this.releaseDate = releaseDate;
+ this.isAvailable=isAvailable;
+ }
+
+ public void setAvailable() {
+ isAvailable = true;
+ return;
+ }
+
+ public boolean isavailable() {
+ return isAvailable;
+ }
+
+ public int returnId() {
+ return id;
+ }
+}
diff --git a/RentalProject-1/rental-proj/src/main/java/org/example/Main.java b/RentalProject-1/rental-proj/src/main/java/org/example/Main.java
new file mode 100644
index 0000000..589969b
--- /dev/null
+++ b/RentalProject-1/rental-proj/src/main/java/org/example/Main.java
@@ -0,0 +1,54 @@
+package org.example;
+
+import com.google.gson.Gson;
+import com.google.gson.reflect.TypeToken;
+
+import java.io.*;
+import java.io.FileWriter;
+import java.util.List;
+
+public class Main {
+ public static void main(String[] args) throws IOException {
+ Gson gson = new Gson();
+ Reader reader = new FileReader("C:\\Users\\NS\\IdeaProjects\\untitled9\\src\\test\\TestYourFork.json");
+ AllModules allModules = gson.fromJson(reader, new TypeToken() {
+ }.getType());
+ Customer Hosein = new Customer("Hosein","hoseinama1383@gmail.com","09906652919","babol",4);
+ Customer Joshn = allModules.getCustomers().get(0);
+ Customer Emily = allModules.getCustomers().get(1);
+ Customer Brown = allModules.getCustomers().get(2);
+
+ for (Item tempItem : allModules.getBooks()) {
+ if (tempItem.returnId() == 3) RentalStore.rentItem(tempItem, Joshn);
+ else if (tempItem.returnId() == 6) {
+ RentalStore.rentItem(tempItem, Joshn);
+ }
+ }
+
+ for (Item tempItem : allModules.getBooks()) {
+ if (tempItem.returnId() == 1) RentalStore.rentItem(tempItem, Emily);
+ else if (tempItem.returnId() == 7) {
+ RentalStore.rentItem(tempItem, Emily);
+ }
+ }
+
+ for (Item tempItem : allModules.getBooks()) {
+ if (tempItem.returnId() == 9) RentalStore.rentItem(tempItem, Brown);
+ else if (tempItem.returnId() == 4) {
+ RentalStore.rentItem(tempItem, Brown);
+ }
+ }
+ reader.close();
+ Gson gson1 = new Gson();
+ String json = gson1.toJson(allModules);
+ String filePath = "C:\\Users\\NS\\IdeaProjects\\untitled9\\src\\test\\TestYourFork.json";
+ try {
+ java.io.FileWriter writer = new FileWriter(filePath);
+ writer.write(json);
+ writer.close();
+ System.out.println("JSON data has been written to the file successfully.");
+ } catch (IOException e) {
+ e.printStackTrace();
+ }
+ }
+}
diff --git a/RentalProject-1/rental-proj/src/main/java/org/example/Movie.java b/RentalProject-1/rental-proj/src/main/java/org/example/Movie.java
new file mode 100644
index 0000000..a9fa9f1
--- /dev/null
+++ b/RentalProject-1/rental-proj/src/main/java/org/example/Movie.java
@@ -0,0 +1,36 @@
+package org.example;
+
+import java.util.Date;
+
+public class Movie extends Item {
+ String director;
+ String cast;
+
+ public Movie(String title, String genre, String director, String cast, Date releaseDate, int ID,boolean isAvailable) {
+ super(title, genre, releaseDate,ID,isAvailable);
+ this.genre = genre;
+ this.director = director;
+ this.cast = cast;
+ }
+
+
+ public String getGenre() {
+ return genre;
+ }
+
+ public String getDirector() {
+ return director;
+ }
+
+ public String getCast() {
+ return cast;
+ }
+
+ public Date getReleaseDate() {
+ return releaseDate;
+ }
+
+ public int getID() {
+ return returnId();
+ }
+}
diff --git a/RentalProject-1/rental-proj/src/main/java/org/example/Person.java b/RentalProject-1/rental-proj/src/main/java/org/example/Person.java
new file mode 100644
index 0000000..252e483
--- /dev/null
+++ b/RentalProject-1/rental-proj/src/main/java/org/example/Person.java
@@ -0,0 +1,33 @@
+package org.example;
+
+import com.google.gson.Gson;
+import com.google.gson.reflect.TypeToken;
+
+import java.io.*;
+import java.util.List;
+
+public class Person {
+ private String name;
+ private int age;
+ private String email;
+ public String getName() {
+ return name;
+ }
+ public void setName(String name) {
+ this.name = name;
+ }
+ public int getAge() {
+ return age;
+ }
+ public void setAge(int age) {
+ this.age = age;
+ }
+ public String getEmail() {
+ return email;
+ }
+ public void setEmail(String email) {
+ this.email = email;
+ }
+
+
+}
diff --git a/RentalProject-1/rental-proj/src/main/java/org/example/Rental.java b/RentalProject-1/rental-proj/src/main/java/org/example/Rental.java
new file mode 100644
index 0000000..d317873
--- /dev/null
+++ b/RentalProject-1/rental-proj/src/main/java/org/example/Rental.java
@@ -0,0 +1,50 @@
+package org.example;
+
+import java.util.Date;
+
+public class Rental {
+ int id;
+ Item item;
+ Customer customer;
+ Integer customerId;
+ Date rentalDate;
+ Date returnDate;
+
+ public Rental(Item item, Customer customer) {
+ this.id = customer.id + item.returnId();
+ this.customer= new Customer(customer.name, customer.email, customer.phone, customer.address, customer.id);
+ this.item = item;
+ this.customerId = customer.id;
+ item.isAvailable = false;
+ }
+
+ public int getId() {
+ return id;
+ }
+
+
+ public Item getitem() {
+ return item;
+ }
+
+ public Customer getCustomer() {
+ RentalStore rentalStore = new RentalStore();
+ return rentalStore.getCustomerById(customerId);
+ }
+
+ public Date getRentalDate() {
+ return rentalDate;
+ }
+
+ public Date getReturnDate() {
+ return returnDate;
+ }
+
+ public void setReturnDate(Date returnDate) {
+ this.returnDate = returnDate;
+ }
+
+ public double calculateLateFee() {
+ return 0;
+ }
+}
diff --git a/RentalProject-1/rental-proj/src/main/java/org/example/RentalStore.java b/RentalProject-1/rental-proj/src/main/java/org/example/RentalStore.java
new file mode 100644
index 0000000..09905e2
--- /dev/null
+++ b/RentalProject-1/rental-proj/src/main/java/org/example/RentalStore.java
@@ -0,0 +1,138 @@
+package org.example;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class RentalStore {
+ List books = new ArrayList<>();
+ List movies = new ArrayList<>();
+ List games = new ArrayList<>();
+ List customers = new ArrayList<>();
+
+ public void Register(Customer customer) {
+ if (!(customers.contains(customer))) customers.add(customer);
+ }
+
+ /////////////////////////////////////////////////////
+ public void addMovies(Item item) {
+ if (item instanceof Movie) {
+ movies.add((Movie) item);
+ } else if (item instanceof Book) {
+ books.add((Book) item);
+ } else if (item instanceof Game) {
+ games.add((Game) item);
+ }
+ }
+
+ public void removeMovies(Item item) {
+ if (item instanceof Movie) {
+ movies.remove((Movie) item);
+ }
+ else if (item instanceof Book) {
+ books.remove((Book) item);
+ }
+ else if (item instanceof Game) {
+ games.remove((Game) item);
+ }
+ }
+////////////////////////////////////////////////////
+ public List getAvailableMovie() {
+ List availableList = null;
+ for (Movie i : movies) {
+ if (i.isavailable()) {
+ availableList.add(i);
+ }
+ }
+ return availableList;
+ }
+
+ public List getAvailableBook() {
+ List availableList = null;
+ for (Book i : books) {
+ if (i.isavailable()) {
+ availableList.add(i);
+ }
+ }
+ return availableList;
+ }
+
+ public List getAvailableGame() {
+ List availableList = null;
+ for (Game i : games) {
+ if (i.isavailable()) {
+ availableList.add(i);
+ }
+ }
+ return availableList;
+ }
+///////////////////////////////////////////////////
+
+ public static void rentItem(Item item, Customer customer) {
+ if (item instanceof Movie || item instanceof Book || item instanceof Game) {
+ Rental rental = new Rental(item, customer);
+
+
+ if (customer.rentals == null) {
+ customer.rentals = new ArrayList<>();
+ }
+ if (!(customer.rentals.contains(rental.item))) {
+ customer.rentals.add(rental);
+ rental.rentalDate = new Date();
+
+ }
+
+ }
+ }
+ //////////////////////////////////////////////
+
+ public static void returnItem(Rental rental) {
+ rental.rentalDate = new Date();
+ rental.item.setAvailable();
+ return;
+ }
+
+//////////////////////////////////////////////////////////
+ public Customer getCustomerById(int id) {
+ for (Customer i :
+ customers) {
+ if (id == i.id) {
+ return i;
+ }
+ }
+ return null;
+ }
+
+ public Item getMovieById(int id) {
+ for (Movie i :
+ movies) {
+ if (id == i.returnId()) {
+ Item item = (Movie) i;
+ return item;
+ }
+ }
+ return null;
+ }
+ public Item getBookById(int id) {
+ for (Book i :
+ books) {
+ if (id == i.returnId()) {
+ Item item = (Book) i;
+ return item;
+ }
+ }
+ return null;
+ }
+ public Item getGameById(int id) {
+ for (Game i :
+ games) {
+ if (id == i.returnId()) {
+ Item item = (Game) i;
+ return item;
+ }
+ }
+ return null;
+ }
+ }
+
+
diff --git a/RentalProject-1/rental-proj/src/test/TestYourFork.json b/RentalProject-1/rental-proj/src/test/TestYourFork.json
new file mode 100644
index 0000000..c4a6d5d
--- /dev/null
+++ b/RentalProject-1/rental-proj/src/test/TestYourFork.json
@@ -0,0 +1,334 @@
+{
+ "games": [
+ {
+ "company": "Nintendo",
+ "aboutGame": "Embark on an epic adventure as Link",
+ "director": "Shigeru Miyamoto",
+ "gameRate": 9.0,
+ "id": 1,
+ "title": "The Legend of Zelda: Breath of the Wild",
+ "genre": "Action-Adventure",
+ "releaseDate": "Mar 3, 2017, 12:00:00 AM",
+ "isAvailable": true
+ },
+ {
+ "company": "Rockstar Games",
+ "aboutGame": "Experience life in the Wild West",
+ "director": "Dan Houser",
+ "gameRate": 9.5,
+ "id": 2,
+ "title": "Red Dead Redemption 2",
+ "genre": "Action-Adventure",
+ "releaseDate": "Oct 26, 2018, 12:00:00 AM",
+ "isAvailable": true
+ },
+ {
+ "company": "CD Projekt",
+ "aboutGame": "Embark on a monster-hunting adventure as Geralt of Rivia",
+ "director": "Konrad Tomaszkiewicz",
+ "gameRate": 9.8,
+ "id": 3,
+ "title": "The Witcher 3: Wild Hunt",
+ "genre": "Action-RPG",
+ "releaseDate": "May 19, 2015, 12:00:00 AM",
+ "isAvailable": true
+ },
+ {
+ "company": "Nintendo",
+ "aboutGame": "Join Mario on a globe-trotting journey to rescue Princess Peach",
+ "director": "Kenta Motokura",
+ "gameRate": 9.3,
+ "id": 4,
+ "title": "Super Mario Odyssey",
+ "genre": "Platformer",
+ "releaseDate": "Oct 27, 2017, 12:00:00 AM",
+ "isAvailable": true
+ },
+ {
+ "company": "Santa Monica Studio",
+ "aboutGame": "Experience the epic adventures of Kratos and Atreus",
+ "director": "Cory Barlog",
+ "gameRate": 9.7,
+ "id": 5,
+ "title": "God of War (2018)",
+ "genre": "Action-Adventure",
+ "releaseDate": "Apr 20, 2018, 12:00:00 AM",
+ "isAvailable": true
+ },
+ {
+ "company": "Rockstar Games",
+ "aboutGame": "Explore the open world of Los Santos in this crime-filled saga",
+ "director": "Aaron Garbut",
+ "gameRate": 9.6,
+ "id": 6,
+ "title": "Grand Theft Auto V",
+ "genre": "Action-Adventure",
+ "releaseDate": "Sep 17, 2013, 12:00:00 AM",
+ "isAvailable": true
+ },
+ {
+ "company": "Mojang Studios",
+ "aboutGame": "Build and explore your own virtual world",
+ "director": "Markus Persson",
+ "gameRate": 6.3,
+ "id": 7,
+ "title": "Minecraft",
+ "genre": "Sandbox",
+ "releaseDate": "Nov 18, 2011, 12:00:00 AM",
+ "isAvailable": true
+ },
+ {
+ "company": "Naughty Dog",
+ "aboutGame": "Survive in a post-apocalyptic world filled with infected creatures",
+ "director": "Neil Druckmann",
+ "gameRate": 9.7,
+ "id": 8,
+ "title": "The Last of Us Part II",
+ "genre": "Action-Adventure",
+ "releaseDate": "Jun 19, 2020, 12:00:00 AM",
+ "isAvailable": true
+ },
+ {
+ "company": "Bethesda Game Studios",
+ "aboutGame": "Navigate the wasteland and make choices that shape the future",
+ "director": "Todd Howard",
+ "gameRate": 9.2,
+ "id": 9,
+ "title": "Fallout 4",
+ "genre": "Action-RPG",
+ "releaseDate": "Nov 10, 2015, 12:00:00 AM",
+ "isAvailable": true
+ },
+ {
+ "company": "Ubisoft Montreal",
+ "aboutGame": "Embark on a Viking adventure in the age of the Dark Ages",
+ "director": "Ashraf Ismail",
+ "gameRate": 9.1,
+ "id": 10,
+ "title": "Assassin\u0027s Creed Valhalla",
+ "genre": "Action-Adventure",
+ "releaseDate": "Nov 10, 2020, 12:00:00 AM",
+ "isAvailable": true
+ }
+ ],
+ "books": [
+ {
+ "writer": "Alice Thompson",
+ "publisher": "Penguin Books",
+ "bookCover": "https://example.com/book1.jpg",
+ "id": 1,
+ "title": "The Secret Garden",
+ "genre": "Fiction",
+ "releaseDate": "Mar 15, 2022, 12:00:00 AM",
+ "isAvailable": false
+ },
+ {
+ "writer": "Benjamin Martin",
+ "publisher": "HarperCollins",
+ "bookCover": "https://example.com/book2.jpg",
+ "id": 2,
+ "title": "The Alchemist",
+ "genre": "Fantasy",
+ "releaseDate": "Jul 1, 2021, 12:00:00 AM",
+ "isAvailable": true
+ },
+ {
+ "writer": "Jane Austen",
+ "publisher": "Thomas Egerton",
+ "bookCover": "https://example.com/book3.jpg",
+ "id": 3,
+ "title": "Pride and Prejudice",
+ "genre": "Romance",
+ "releaseDate": "Jan 28, 1813, 12:00:00 AM",
+ "isAvailable": false
+ },
+ {
+ "writer": "Harper Lee",
+ "publisher": "J. B. Lippincott \u0026 Co.",
+ "bookCover": "https://example.com/book4.jpg",
+ "id": 4,
+ "title": "To Kill a Mockingbird",
+ "genre": "Classic",
+ "releaseDate": "Jul 11, 1960, 12:00:00 AM",
+ "isAvailable": false
+ },
+ {
+ "writer": "George Orwell",
+ "publisher": "Secker \u0026 Warburg",
+ "bookCover": "https://example.com/book5.jpg",
+ "id": 5,
+ "title": "1984",
+ "genre": "Dystopian",
+ "releaseDate": "Jun 8, 1949, 12:00:00 AM",
+ "isAvailable": true
+ },
+ {
+ "writer": "F. Scott Fitzgerald",
+ "publisher": "Charles Scribner\u0027s Sons",
+ "bookCover": "https://example.com/book6.jpg",
+ "id": 6,
+ "title": "The Great Gatsby",
+ "genre": "Fiction",
+ "releaseDate": "Apr 10, 1925, 12:00:00 AM",
+ "isAvailable": false
+ },
+ {
+ "writer": "J.K. Rowling",
+ "publisher": "Bloomsbury Publishing",
+ "bookCover": "https://example.com/book7.jpg",
+ "id": 7,
+ "title": "Harry Potter and the Philosopher\u0027s Stone",
+ "genre": "Fantasy",
+ "releaseDate": "Jun 26, 1997, 12:00:00 AM",
+ "isAvailable": false
+ },
+ {
+ "writer": "J.R.R. Tolkien",
+ "publisher": "George Allen \u0026 Unwin",
+ "bookCover": "https://example.com/book8.jpg",
+ "id": 8,
+ "title": "The Hobbit",
+ "genre": "Fantasy",
+ "releaseDate": "Sep 21, 1937, 12:00:00 AM",
+ "isAvailable": true
+ },
+ {
+ "writer": "J.D. Salinger",
+ "publisher": "Little, Brown and Company",
+ "bookCover": "https://example.com/book9.jpg",
+ "id": 9,
+ "title": "The Catcher in the Rye",
+ "genre": "Coming-of-age",
+ "releaseDate": "Jul 16, 1951, 12:00:00 AM",
+ "isAvailable": false
+ },
+ {
+ "writer": "C.S. Lewis",
+ "publisher": "Geoffrey Bles",
+ "bookCover": "https://example.com/book10.jpg",
+ "id": 10,
+ "title": "The Chronicles of Narnia: The Lion, the Witch, and the Wardrobe",
+ "genre": "Fantasy",
+ "releaseDate": "Oct 16, 1950, 12:00:00 AM",
+ "isAvailable": true
+ }
+ ],
+ "movies": [
+ {
+ "director": "Christopher Nolan",
+ "cast": "Leonardo DiCaprio, Joseph Gordon-Levitt",
+ "id": 1,
+ "title": "Inception",
+ "genre": "Sci-Fi",
+ "releaseDate": "Jul 16, 2010, 12:00:00 AM",
+ "isAvailable": true
+ },
+ {
+ "director": "Frank Darabont",
+ "cast": "Tim Robbins, Morgan Freeman",
+ "id": 2,
+ "title": "The Shawshank Redemption",
+ "genre": "Drama",
+ "releaseDate": "Sep 23, 1994, 12:00:00 AM",
+ "isAvailable": true
+ },
+ {
+ "director": "Christopher Nolan",
+ "cast": "Christian Bale, Heath Ledger",
+ "id": 3,
+ "title": "The Dark Knight",
+ "genre": "Action",
+ "releaseDate": "Jul 18, 2008, 12:00:00 AM",
+ "isAvailable": true
+ },
+ {
+ "director": "Quentin Tarantino",
+ "cast": "John Travolta, Uma Thurman",
+ "id": 4,
+ "title": "Pulp Fiction",
+ "genre": "Crime",
+ "releaseDate": "Oct 14, 1994, 12:00:00 AM",
+ "isAvailable": true
+ },
+ {
+ "director": "Francis Ford Coppola",
+ "cast": "Marlon Brando, Al Pacino",
+ "id": 5,
+ "title": "The Godfather",
+ "genre": "Crime",
+ "releaseDate": "Mar 24, 1972, 12:00:00 AM",
+ "isAvailable": true
+ },
+ {
+ "director": "David Fincher",
+ "cast": "Brad Pitt, Edward Norton",
+ "id": 6,
+ "title": "Fight Club",
+ "genre": "Drama",
+ "releaseDate": "Oct 15, 1999, 12:00:00 AM",
+ "isAvailable": true
+ },
+ {
+ "director": "Lana Wachowski, Lilly Wachowski",
+ "cast": "Keanu Reeves, Laurence Fishburne",
+ "id": 7,
+ "title": "The Matrix",
+ "genre": "Sci-Fi",
+ "releaseDate": "Mar 31, 1999, 12:00:00 AM",
+ "isAvailable": true
+ },
+ {
+ "director": "Robert Zemeckis",
+ "cast": "Tom Hanks, Robin Wright",
+ "id": 8,
+ "title": "Forrest Gump",
+ "genre": "Drama",
+ "releaseDate": "Jul 6, 1994, 12:00:00 AM",
+ "isAvailable": true
+ },
+ {
+ "director": "Peter Jackson",
+ "cast": "Elijah Wood, Ian McKellen",
+ "id": 9,
+ "title": "The Lord of the Rings: The Fellowship of the Ring",
+ "genre": "Fantasy",
+ "releaseDate": "Dec 19, 2001, 12:00:00 AM",
+ "isAvailable": true
+ },
+ {
+ "director": "Joss Whedon",
+ "cast": "Robert Downey Jr., Chris Evans",
+ "id": 10,
+ "title": "The Avengers",
+ "genre": "Action",
+ "releaseDate": "Apr 11, 2012, 12:00:00 AM",
+ "isAvailable": true
+ }
+ ],
+ "customers": [
+ {
+ "id": 1,
+ "name": "John Smith",
+ "email": "johnsmith@example.com",
+ "phone": "1234567890",
+ "address": "123 Main Street",
+ "rentals": []
+ },
+ {
+ "id": 2,
+ "name": "Emily Johnson",
+ "email": "emilyjohnson@example.com",
+ "phone": "9876543210",
+ "address": "456 Oak Avenue",
+ "rentals": []
+ },
+ {
+ "id": 3,
+ "name": "Michael Brown",
+ "email": "michaelbrown@example.com",
+ "phone": "5555555555",
+ "address": "789 Elm Street",
+ "rentals": []
+ }
+ ]
+}
\ No newline at end of file
diff --git a/RentalProject-1/rental-proj/target/classes/org/example/AllModules.class b/RentalProject-1/rental-proj/target/classes/org/example/AllModules.class
new file mode 100644
index 0000000..5068eb3
Binary files /dev/null and b/RentalProject-1/rental-proj/target/classes/org/example/AllModules.class differ
diff --git a/RentalProject-1/rental-proj/target/classes/org/example/Book.class b/RentalProject-1/rental-proj/target/classes/org/example/Book.class
new file mode 100644
index 0000000..9b7ba9e
Binary files /dev/null and b/RentalProject-1/rental-proj/target/classes/org/example/Book.class differ
diff --git a/RentalProject-1/rental-proj/target/classes/org/example/Customer.class b/RentalProject-1/rental-proj/target/classes/org/example/Customer.class
new file mode 100644
index 0000000..61415f0
Binary files /dev/null and b/RentalProject-1/rental-proj/target/classes/org/example/Customer.class differ
diff --git a/RentalProject-1/rental-proj/target/classes/org/example/Game.class b/RentalProject-1/rental-proj/target/classes/org/example/Game.class
new file mode 100644
index 0000000..09234e0
Binary files /dev/null and b/RentalProject-1/rental-proj/target/classes/org/example/Game.class differ
diff --git a/RentalProject-1/rental-proj/target/classes/org/example/Item.class b/RentalProject-1/rental-proj/target/classes/org/example/Item.class
new file mode 100644
index 0000000..dbeca50
Binary files /dev/null and b/RentalProject-1/rental-proj/target/classes/org/example/Item.class differ
diff --git a/RentalProject-1/rental-proj/target/classes/org/example/Main$1.class b/RentalProject-1/rental-proj/target/classes/org/example/Main$1.class
new file mode 100644
index 0000000..ffefc7e
Binary files /dev/null and b/RentalProject-1/rental-proj/target/classes/org/example/Main$1.class differ
diff --git a/RentalProject-1/rental-proj/target/classes/org/example/Main.class b/RentalProject-1/rental-proj/target/classes/org/example/Main.class
new file mode 100644
index 0000000..be5b3a3
Binary files /dev/null and b/RentalProject-1/rental-proj/target/classes/org/example/Main.class differ
diff --git a/RentalProject-1/rental-proj/target/classes/org/example/Movie.class b/RentalProject-1/rental-proj/target/classes/org/example/Movie.class
new file mode 100644
index 0000000..f14df24
Binary files /dev/null and b/RentalProject-1/rental-proj/target/classes/org/example/Movie.class differ
diff --git a/RentalProject-1/rental-proj/target/classes/org/example/Person.class b/RentalProject-1/rental-proj/target/classes/org/example/Person.class
new file mode 100644
index 0000000..46a1ee2
Binary files /dev/null and b/RentalProject-1/rental-proj/target/classes/org/example/Person.class differ
diff --git a/RentalProject-1/rental-proj/target/classes/org/example/Rental.class b/RentalProject-1/rental-proj/target/classes/org/example/Rental.class
new file mode 100644
index 0000000..2090760
Binary files /dev/null and b/RentalProject-1/rental-proj/target/classes/org/example/Rental.class differ
diff --git a/RentalProject-1/rental-proj/target/classes/org/example/RentalStore.class b/RentalProject-1/rental-proj/target/classes/org/example/RentalStore.class
new file mode 100644
index 0000000..c9c14f6
Binary files /dev/null and b/RentalProject-1/rental-proj/target/classes/org/example/RentalStore.class differ
diff --git a/RentalProject/project_should_be_here b/RentalProject/project_should_be_here
deleted file mode 100644
index e69de29..0000000