diff --git a/README.md b/README.md
index 9c0605c45e127ba5f3c51c2aeee2e15cedd2291b..37a4741dc5929e170ef16c3aa783577ce6aaba93 100644
--- a/README.md
+++ b/README.md
@@ -2,52 +2,39 @@
 ## Authors
 > **Muhammad Raihan Adliputra** - *2006485680* - *A*
 
-## Tutorial 1
+## Tutorial 2
 ### What I have learned today
-* Saya berhasil mencoba *hands on* membuat program BMI sederhana menggunakan Spring Boot
-* Saya berhasil mengingat dan mengoperasikan kembali *command-command* pada penggunaan GitLab
-### GitLab
-1. Apa itu Issue Tracker? Apa saja masalah yang dapat diselesaikan dengan Issue Tracker?
-**Issue Tracker**, merupakan fitur yang ada pada GitHub yang berfungsi untuk memudahkan *user* untuk tetap *on track* dan mengerahui perubahan apa saja yang terjadi pada proyek. Selain itu, **Issue Tracker** juga bisa membantu *user* untuk menemukan bug yang ada pada proyek.
-*Reference*:
-> [About issues](https://docs.github.com/en/issues/tracking-your-work-with-issues/about-issues)
-
-2. Apa perbedaan dari git merge dan git merge --squash?
-*command* `git merge --squash` akan menyatukan semua commit pada suatu branch menjadi 1 commit saja. Sehingga, jika *user* ingin melakukan merge ke branch main, maka branch tersebut hanya memberikan 1 commit.
-*Reference*:
-> [git merge VS git merge -- squash](https://monsterlessons-academy.com/p/git-squash-how-to-combine-git-commits-with-merge-and-rebase)
-
-3. Apa keunggulan menggunakan Version Control System seperti Git dalam pengembangan suatu aplikasi?
-Fungsi dari **Version Control System** adalah menyimpan perubahan pada *source code*, sehingga mampu meminimalisir resiko gagal ada kode yang sudah kita ubah.
-*Reference*:
-> [Version Control System](https://glints.com/id/lowongan/version-control-system/#.YTjZGp0zaUk)
-### Spring
-4. Apa itu library & dependency?
-* **Library** merupakan kumpulan code pada sebuah modul yang bisa dipakai oleh *user* untuk memudahkan pembuatan suatu proyek.
-* **Dependency** merupakan sebuah kata yang mereferensikan ketika suatu *software* saling berkaitan dengan *software* lainnya.
-*Reference*:
-> [Library](https://id.quora.com/Apa-yang-dimaksud-dengan-library-pada-pemrograman)
-> [Dependency](https://coderslegacy.com/what-are-dependencies-in-programming/)
-
-5. Apa itu Gradle? Mengapa kita menggunakan Gradle? Apakah ada alternatif dari Gradle?
-**Gradle** merupakan *automation tool* untuk membangun *software*. **Gradle** kita gunakan karena **Gradle** mampu memberikan performa yang sangat baik dan juga **Gradle** saat ini sudah bisa dipakai oleh *user* di berbagai macam IDE yang ada di pasar saat ini. Alternatif lain dari penggunaan **Gradle** adalah Maven, Bazel, dan lainnya.
-*Reference*:
-> [About Gradle](https://www.simplilearn.com/tutorials/gradle-tutorial/what-is-gradle)
-> [Gradle altenatives](https://rigorousthemes.com/blog/best-gradle-alternatives/)
-
-6. Selain untuk pengembangan web, apa saja yang bisa dikembangkan dengan Spring framework?
-**Spring framewor** dapat digunakan untuk Cloud, Reactive, Event Driven, dan sebagainya.
-*Reference*:
-> [Spring framework](https://spring.io/projects/spring-framework)
-
-7. Apa perbedaan dari @RequestParam dan @PathVariable? Kapan sebaiknya menggunakan @RequestParam atau @PathVariable?
-* **@RequestParam** digunakan untuk mengakses nilai dari parameter.
-* **@PathVariable** digunakan untuk mengakses nilai dari template URI.
-*Reference*:
-> [RequestParam VS PathVariable](https://javabeat.net/spring-mvc-requestparam-pathvariable/)
-### What I did not understand
-Saya masih belum terbiasa dengan sistem branch pada gitlab, karena selama ini saya hanya menggunakan branch main pada gitlab. Saya juga baru pertama kali menggunakan spring boot, sehingga saya masih tidak mengerti apa yang saya ketikkan pada kode yang ada pada Tutorial 1 ini.
-- [x] Apakah saya mampu lulus APAP dengan nilai memuaskan?
-**YA**. Karena saya mampu dan saya ingin.
-
-
+* Saya berhasil mencoba dan memahami materi Organizing Domain Logic & Service Layer
+### Pertanyaan
+1. Cobalah untuk menambahkan sebuah Course dengan mengakses link berikut:
+> [Sebuah Link](http://localhost:8080/course/add?code=APAP&nameCourse=APAP%20Tutorial2&description=2020%20Fasilkom&jumlahSks=3)
+Apa yang terjadi? Jelaskan mengapa hal tersebut dapat terjadi
+Akan terjadi **Whitelabel Error**. *Error* ini akan terjadi karena file *controller* akan mencoba mengakses file html yang tidak tersedia, yaitu ketika file *controller* mengembalikan *string* nama file html yang dimana file html tersebut belum tersedia pada folder *template*.
+
+2. Menurut kamu anotasi @Autowired pada class Controller tersebut merupakan implementasi dari konsep apa? Dan jelaskan secara singkat cara kerja @Autowired tersebut dalam konteks service dan controller yang telah kamu buat
+Anotasi **@Autowired** pada file *controller* adalah contoh implementasi dari *Dependency Injection*, yaitu sebuah fitur yang membuat Spring bisa menyelesaikan dan menyuntikkan *beans* yang berkolaborasi dengan *beans* lainnya.
+*Reference*: 
+> [Dependency Injection](https://www.baeldung.com/spring-autowire)   
+
+3. Cobalah untuk menambahkan sebuah Course dengan mengakses link berikut: 
+> [Sebuah Link](http://localhost:8080/course/add?code=APAP&nameCourse=APAP%20Tutorial2&jumlahSks=3)   
+Apa yang terjadi? Jelaskan mengapa hal tersebut dapat terjadi.
+Akan terjadi **Whitelabel Error**. *Error* ini akan terjadi karena method *addCourse* membutuhkan sebuah parameter description untuk menambahkan sebuah course ke dalam *listCourse*, sementara parameter yang dibutuhkan tidak ada.
+
+4. Jika Papa APAP ingin melihat Course dengan kode APAP, link apa yang harus diakses?
+Link yang dapat diakses oleh Papa APAP adalah sebagai berikut:
+* > [Link 1](http://localhost:8080/course/view?code=APAP) yang akan menggunakan *RequestParam*.
+* > [Link 2](http://localhost:8080/course/view/code-course/APAP) yang akan menggunakan *PathVariable*.
+Papap APAP bisa mengakses link tersebut karena kedua link itu akan mengarahkan user untuk mampu melihat detail course apapun dengan kode spesifik yang harus dimasukkan.
+
+5. Tambahkan 1 contoh Course lainnya sesukamu. Lalu cobalah untuk mengakses > [Sebuah Link](http://localhost:8080/course/viewAll), apa yang akan ditampilkan? Sertakan juga bukti screenshotmu. 
+Yang akan ditampilkan adalah detail seluruh course yang akan menampilkan:
+* **Code**
+* **Nama Course**
+* **Description**
+* **Jumlah Sks**
+Untuk contoh course yang akan saya tambahkan adalah (bukti penambahan bisa diakses melalui link ini > [Link Bukti](https://drive.google.com/drive/folders/1tb_SLx-8CEpsnoSTjrp1CxaT7i4lYolL?usp=sharing)):
+* Kode = **SOSI**
+* Nama Course = **APAP Tutorial2**
+* Description = **2020 Fasilkom**
+* Jumlah Sks = **3**
\ No newline at end of file
diff --git a/belajarbelajar/.gitignore b/belajarbelajar/.gitignore
new file mode 100644
index 0000000000000000000000000000000000000000..c2065bc26202b2d072aca3efc3d1c2efad3afcbf
--- /dev/null
+++ b/belajarbelajar/.gitignore
@@ -0,0 +1,37 @@
+HELP.md
+.gradle
+build/
+!gradle/wrapper/gradle-wrapper.jar
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### STS ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+bin/
+!**/src/main/**/bin/
+!**/src/test/**/bin/
+
+### IntelliJ IDEA ###
+.idea
+*.iws
+*.iml
+*.ipr
+out/
+!**/src/main/**/out/
+!**/src/test/**/out/
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+
+### VS Code ###
+.vscode/
diff --git a/belajarbelajar/build.gradle b/belajarbelajar/build.gradle
new file mode 100644
index 0000000000000000000000000000000000000000..605ad9476d5415141ec1ff36e8a1ec93788f240e
--- /dev/null
+++ b/belajarbelajar/build.gradle
@@ -0,0 +1,24 @@
+plugins {
+	id 'org.springframework.boot' version '2.7.3'
+	id 'io.spring.dependency-management' version '1.0.13.RELEASE'
+	id 'java'
+}
+
+group = 'apap.tutorial'
+version = '0.0.1-SNAPSHOT'
+sourceCompatibility = '11'
+
+repositories {
+	mavenCentral()
+}
+
+dependencies {
+	implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
+	implementation 'org.springframework.boot:spring-boot-starter-web'
+	developmentOnly 'org.springframework.boot:spring-boot-devtools'
+	testImplementation 'org.springframework.boot:spring-boot-starter-test'
+}
+
+tasks.named('test') {
+	useJUnitPlatform()
+}
diff --git a/belajarbelajar/gradle/wrapper/gradle-wrapper.jar b/belajarbelajar/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000000000000000000000000000000000000..249e5832f090a2944b7473328c07c9755baa3196
Binary files /dev/null and b/belajarbelajar/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/belajarbelajar/gradle/wrapper/gradle-wrapper.properties b/belajarbelajar/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000000000000000000000000000000000000..8049c684f04fdf584869d8eed0bc9168b401e403
--- /dev/null
+++ b/belajarbelajar/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,5 @@
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
diff --git a/belajarbelajar/gradlew b/belajarbelajar/gradlew
new file mode 100644
index 0000000000000000000000000000000000000000..a69d9cb6c20655813e44515156e7253a2a239138
--- /dev/null
+++ b/belajarbelajar/gradlew
@@ -0,0 +1,240 @@
+#!/bin/sh
+
+#
+# Copyright © 2015-2021 the original authors.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+#      https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
+##############################################################################
+#
+#   Gradle start up script for POSIX generated by Gradle.
+#
+#   Important for running:
+#
+#   (1) You need a POSIX-compliant shell to run this script. If your /bin/sh is
+#       noncompliant, but you have some other compliant shell such as ksh or
+#       bash, then to run this script, type that shell name before the whole
+#       command line, like:
+#
+#           ksh Gradle
+#
+#       Busybox and similar reduced shells will NOT work, because this script
+#       requires all of these POSIX shell features:
+#         * functions;
+#         * expansions «$var», «${var}», «${var:-default}», «${var+SET}»,
+#           «${var#prefix}», «${var%suffix}», and «$( cmd )»;
+#         * compound commands having a testable exit status, especially «case»;
+#         * various built-in commands including «command», «set», and «ulimit».
+#
+#   Important for patching:
+#
+#   (2) This script targets any POSIX shell, so it avoids extensions provided
+#       by Bash, Ksh, etc; in particular arrays are avoided.
+#
+#       The "traditional" practice of packing multiple parameters into a
+#       space-separated string is a well documented source of bugs and security
+#       problems, so this is (mostly) avoided, by progressively accumulating
+#       options in "$@", and eventually passing that to Java.
+#
+#       Where the inherited environment variables (DEFAULT_JVM_OPTS, JAVA_OPTS,
+#       and GRADLE_OPTS) rely on word-splitting, this is performed explicitly;
+#       see the in-line comments for details.
+#
+#       There are tweaks for specific operating systems such as AIX, CygWin,
+#       Darwin, MinGW, and NonStop.
+#
+#   (3) This script is generated from the Groovy template
+#       https://github.com/gradle/gradle/blob/master/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
+#       within the Gradle project.
+#
+#       You can find Gradle at https://github.com/gradle/gradle/.
+#
+##############################################################################
+
+# Attempt to set APP_HOME
+
+# Resolve links: $0 may be a link
+app_path=$0
+
+# Need this for daisy-chained symlinks.
+while
+    APP_HOME=${app_path%"${app_path##*/}"}  # leaves a trailing /; empty if no leading path
+    [ -h "$app_path" ]
+do
+    ls=$( ls -ld "$app_path" )
+    link=${ls#*' -> '}
+    case $link in             #(
+      /*)   app_path=$link ;; #(
+      *)    app_path=$APP_HOME$link ;;
+    esac
+done
+
+APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit
+
+APP_NAME="Gradle"
+APP_BASE_NAME=${0##*/}
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD=maximum
+
+warn () {
+    echo "$*"
+} >&2
+
+die () {
+    echo
+    echo "$*"
+    echo
+    exit 1
+} >&2
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "$( uname )" in                #(
+  CYGWIN* )         cygwin=true  ;; #(
+  Darwin* )         darwin=true  ;; #(
+  MSYS* | MINGW* )  msys=true    ;; #(
+  NONSTOP* )        nonstop=true ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+    if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+        # IBM's JDK on AIX uses strange locations for the executables
+        JAVACMD=$JAVA_HOME/jre/sh/java
+    else
+        JAVACMD=$JAVA_HOME/bin/java
+    fi
+    if [ ! -x "$JAVACMD" ] ; then
+        die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+    fi
+else
+    JAVACMD=java
+    which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if ! "$cygwin" && ! "$darwin" && ! "$nonstop" ; then
+    case $MAX_FD in #(
+      max*)
+        MAX_FD=$( ulimit -H -n ) ||
+            warn "Could not query maximum file descriptor limit"
+    esac
+    case $MAX_FD in  #(
+      '' | soft) :;; #(
+      *)
+        ulimit -n "$MAX_FD" ||
+            warn "Could not set maximum file descriptor limit to $MAX_FD"
+    esac
+fi
+
+# Collect all arguments for the java command, stacking in reverse order:
+#   * args from the command line
+#   * the main class name
+#   * -classpath
+#   * -D...appname settings
+#   * --module-path (only if needed)
+#   * DEFAULT_JVM_OPTS, JAVA_OPTS, and GRADLE_OPTS environment variables.
+
+# For Cygwin or MSYS, switch paths to Windows format before running java
+if "$cygwin" || "$msys" ; then
+    APP_HOME=$( cygpath --path --mixed "$APP_HOME" )
+    CLASSPATH=$( cygpath --path --mixed "$CLASSPATH" )
+
+    JAVACMD=$( cygpath --unix "$JAVACMD" )
+
+    # Now convert the arguments - kludge to limit ourselves to /bin/sh
+    for arg do
+        if
+            case $arg in                                #(
+              -*)   false ;;                            # don't mess with options #(
+              /?*)  t=${arg#/} t=/${t%%/*}              # looks like a POSIX filepath
+                    [ -e "$t" ] ;;                      #(
+              *)    false ;;
+            esac
+        then
+            arg=$( cygpath --path --ignore --mixed "$arg" )
+        fi
+        # Roll the args list around exactly as many times as the number of
+        # args, so each arg winds up back in the position where it started, but
+        # possibly modified.
+        #
+        # NB: a `for` loop captures its iteration list before it begins, so
+        # changing the positional parameters here affects neither the number of
+        # iterations, nor the values presented in `arg`.
+        shift                   # remove old arg
+        set -- "$@" "$arg"      # push replacement arg
+    done
+fi
+
+# Collect all arguments for the java command;
+#   * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
+#     shell script including quotes and variable substitutions, so put them in
+#     double quotes to make sure that they get re-expanded; and
+#   * put everything else in single quotes, so that it's not re-expanded.
+
+set -- \
+        "-Dorg.gradle.appname=$APP_BASE_NAME" \
+        -classpath "$CLASSPATH" \
+        org.gradle.wrapper.GradleWrapperMain \
+        "$@"
+
+# Stop when "xargs" is not available.
+if ! command -v xargs >/dev/null 2>&1
+then
+    die "xargs is not available"
+fi
+
+# Use "xargs" to parse quoted args.
+#
+# With -n1 it outputs one arg per line, with the quotes and backslashes removed.
+#
+# In Bash we could simply go:
+#
+#   readarray ARGS < <( xargs -n1 <<<"$var" ) &&
+#   set -- "${ARGS[@]}" "$@"
+#
+# but POSIX shell has neither arrays nor command substitution, so instead we
+# post-process each arg (as a line of input to sed) to backslash-escape any
+# character that might be a shell metacharacter, then use eval to reverse
+# that process (while maintaining the separation between arguments), and wrap
+# the whole thing up as a single "set" statement.
+#
+# This will of course break if any of these variables contains a newline or
+# an unmatched quote.
+#
+
+eval "set -- $(
+        printf '%s\n' "$DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS" |
+        xargs -n1 |
+        sed ' s~[^-[:alnum:]+,./:=@_]~\\&~g; ' |
+        tr '\n' ' '
+    )" '"$@"'
+
+exec "$JAVACMD" "$@"
diff --git a/belajarbelajar/gradlew.bat b/belajarbelajar/gradlew.bat
new file mode 100644
index 0000000000000000000000000000000000000000..f127cfd49d4024c3e1e0d08ba56399221b4fb25d
--- /dev/null
+++ b/belajarbelajar/gradlew.bat
@@ -0,0 +1,91 @@
+@rem
+@rem Copyright 2015 the original author or authors.
+@rem
+@rem Licensed under the Apache License, Version 2.0 (the "License");
+@rem you may not use this file except in compliance with the License.
+@rem You may obtain a copy of the License at
+@rem
+@rem      https://www.apache.org/licenses/LICENSE-2.0
+@rem
+@rem Unless required by applicable law or agreed to in writing, software
+@rem distributed under the License is distributed on an "AS IS" BASIS,
+@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+@rem See the License for the specific language governing permissions and
+@rem limitations under the License.
+@rem
+
+@if "%DEBUG%"=="" @echo off
+@rem ##########################################################################
+@rem
+@rem  Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%"=="" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Resolve any "." and ".." in APP_HOME to make it shorter.
+for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if %ERRORLEVEL% equ 0 goto execute
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto execute
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
+
+:end
+@rem End local scope for the variables with windows NT shell
+if %ERRORLEVEL% equ 0 goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+set EXIT_CODE=%ERRORLEVEL%
+if %EXIT_CODE% equ 0 set EXIT_CODE=1
+if not ""=="%GRADLE_EXIT_CONSOLE%" exit %EXIT_CODE%
+exit /b %EXIT_CODE%
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/belajarbelajar/settings.gradle b/belajarbelajar/settings.gradle
new file mode 100644
index 0000000000000000000000000000000000000000..ba2707bd75007da3b0441543525b2aac627e1025
--- /dev/null
+++ b/belajarbelajar/settings.gradle
@@ -0,0 +1 @@
+rootProject.name = 'belajarbelajar'
diff --git a/belajarbelajar/src/main/java/apap/tutorial/belajarbelajar/BelajarbelajarApplication.java b/belajarbelajar/src/main/java/apap/tutorial/belajarbelajar/BelajarbelajarApplication.java
new file mode 100644
index 0000000000000000000000000000000000000000..7c551a3271d05af3314ea8dd40a79c2c6c1590af
--- /dev/null
+++ b/belajarbelajar/src/main/java/apap/tutorial/belajarbelajar/BelajarbelajarApplication.java
@@ -0,0 +1,13 @@
+package apap.tutorial.belajarbelajar;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class BelajarbelajarApplication {
+
+	public static void main(String[] args) {
+		SpringApplication.run(BelajarbelajarApplication.class, args);
+	}
+
+}
diff --git a/belajarbelajar/src/main/java/apap/tutorial/belajarbelajar/controller/CourseController.java b/belajarbelajar/src/main/java/apap/tutorial/belajarbelajar/controller/CourseController.java
new file mode 100644
index 0000000000000000000000000000000000000000..e072043666bca7000845e6383a951bd678b635f0
--- /dev/null
+++ b/belajarbelajar/src/main/java/apap/tutorial/belajarbelajar/controller/CourseController.java
@@ -0,0 +1,101 @@
+package apap.tutorial.belajarbelajar.controller;
+
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Controller;
+import org.springframework.ui.Model;
+import org.springframework.web.bind.annotation.PathVariable;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+
+import  apap.tutorial.belajarbelajar.model.CourseModel;
+import apap.tutorial.belajarbelajar.service.CourseService;
+
+import java.util.List;
+
+@Controller
+public class CourseController {
+    @Autowired
+    private CourseService courseService;
+
+    @RequestMapping("course/add")
+    public String addCourse(
+            @RequestParam(value = "code", required = true) String code,
+            @RequestParam(value = "nameCourse", required = true) String nameCourse,
+            @RequestParam(value = "description", required = true) String description,
+            @RequestParam(value = "jumlahSks", required = true) String jumlahSks,
+            Model model) {
+
+        boolean x = courseService.cantAddCourseWithSameCode(code);
+
+        model.addAttribute("code", code);
+        if (x) {
+            return "cant-add-course";
+        }
+        else {
+            CourseModel course = new CourseModel(code, nameCourse, description, Integer.parseInt(jumlahSks));
+            courseService.addCourse(course);
+
+            model.addAttribute("nameCourse", nameCourse);
+
+            return "add-course";
+        }
+    }
+
+    @RequestMapping("course/viewAll")
+    public String listCourse(Model model) {
+        List<CourseModel> listCourse = courseService.getListCourse();
+
+        model.addAttribute("listCourse", listCourse);
+        return "viewall-course";
+    }
+
+    @RequestMapping("course/view")
+    public String detailCourse(@RequestParam(value = "code") String code, Model model) {
+        CourseModel course = courseService.getCourseByCodeCourse(code);
+
+        model.addAttribute("course", course);
+        return "view-course";
+    }
+
+    @RequestMapping("course/view/code-course/{code}")
+    public String viewCourseWithPath(@PathVariable(value = "code") String code, Model model) {
+        CourseModel course = courseService.getCourseByCodeCourse(code);
+
+        model.addAttribute("course", course);
+        return "view-course";
+    }
+
+    @RequestMapping("course/update/code-course/{code}/jumlah-sks/{jumlahSks}")
+    public String updateSksByCode(@PathVariable(value = "code") String code,
+                                  @PathVariable(value = "jumlahSks") int jumlahSks,
+                                  Model model) {
+
+        CourseModel course = courseService.getCourseByCodeCourse(code);
+        boolean x = courseService.updateSksByCode(code, jumlahSks);
+
+        model.addAttribute("course", course);
+        if (x) {
+            return "cant-update-course";
+        }
+        else {
+            courseService.updateSksByCode(code, jumlahSks);
+            return "update-sks-course";
+        }
+    }
+
+    @RequestMapping("course/delete/code-course/{code}")
+    public String deleteCourseByCode(@PathVariable(value = "code") String code, Model model) {
+
+        boolean x = courseService.deleteCourseByCode(code);
+
+        model.addAttribute("code", code);
+        if (x) {
+            return "cant-delete-course";
+        }
+        else {
+            courseService.deleteCourseByCode(code);
+            model.addAttribute("code", code);
+            return "delete-course";
+        }
+    }
+}
diff --git a/belajarbelajar/src/main/java/apap/tutorial/belajarbelajar/model/CourseModel.java b/belajarbelajar/src/main/java/apap/tutorial/belajarbelajar/model/CourseModel.java
new file mode 100644
index 0000000000000000000000000000000000000000..418976d2177b9a6ba75ca80680e237aa74777b2a
--- /dev/null
+++ b/belajarbelajar/src/main/java/apap/tutorial/belajarbelajar/model/CourseModel.java
@@ -0,0 +1,47 @@
+package apap.tutorial.belajarbelajar.model;
+
+public class CourseModel {
+    private String code;
+    private String nameCourse;
+    private String description;
+    private int jumlahSks;
+
+    public CourseModel(String code, String nameCourse, String description, int jumlahSks){
+        this.code = code;
+        this.nameCourse = nameCourse;
+        this.description = description;
+        this.jumlahSks = jumlahSks;
+    }
+
+    public void setCode(String code) {
+        this.code = code;
+    }
+
+    public void setNameCourse(String nameCourse) {
+        this.nameCourse = nameCourse;
+    }
+
+    public void setDescription(String description) {
+        this.description = description;
+    }
+
+    public void setJumlahSks(int jumlahSks) {
+        this.jumlahSks = jumlahSks;
+    }
+
+    public String getCode() {
+        return code;
+    }
+
+    public String getNameCourse() {
+        return nameCourse;
+    }
+
+    public String getDescription() {
+        return description;
+    }
+
+    public int getJumlahSks() {
+        return jumlahSks;
+    }
+}
\ No newline at end of file
diff --git a/belajarbelajar/src/main/java/apap/tutorial/belajarbelajar/service/CourseService.java b/belajarbelajar/src/main/java/apap/tutorial/belajarbelajar/service/CourseService.java
new file mode 100644
index 0000000000000000000000000000000000000000..ebc54cbcc3108eafc952d446ed3d48132a442d4e
--- /dev/null
+++ b/belajarbelajar/src/main/java/apap/tutorial/belajarbelajar/service/CourseService.java
@@ -0,0 +1,17 @@
+package apap.tutorial.belajarbelajar.service;
+import apap.tutorial.belajarbelajar.model.CourseModel;
+import java.util.List;
+
+public interface CourseService {
+    void addCourse(CourseModel course);
+
+    List<CourseModel> getListCourse();
+
+    CourseModel getCourseByCodeCourse(String code);
+
+    boolean updateSksByCode(String code, int jumlahSks);
+
+    boolean deleteCourseByCode(String code);
+
+    boolean cantAddCourseWithSameCode(String code);
+}
diff --git a/belajarbelajar/src/main/java/apap/tutorial/belajarbelajar/service/CourseServiceImpl.java b/belajarbelajar/src/main/java/apap/tutorial/belajarbelajar/service/CourseServiceImpl.java
new file mode 100644
index 0000000000000000000000000000000000000000..f5b79d8da3e18e730aa420d0c032566074a90a87
--- /dev/null
+++ b/belajarbelajar/src/main/java/apap/tutorial/belajarbelajar/service/CourseServiceImpl.java
@@ -0,0 +1,75 @@
+package apap.tutorial.belajarbelajar.service;
+
+import apap.tutorial.belajarbelajar.model.CourseModel;
+import java.util.ArrayList;
+import java.util.List;
+import org.springframework.stereotype.Service;
+
+@Service
+public class CourseServiceImpl implements CourseService {
+    private List<CourseModel> listCourse;
+
+    public CourseServiceImpl() {
+        listCourse = new ArrayList<>();
+    }
+
+    @Override
+    public void addCourse(CourseModel course) {
+        listCourse.add(course);
+    }
+
+    @Override
+    public List<CourseModel> getListCourse() {
+        return listCourse;
+    }
+
+    @Override
+    public CourseModel getCourseByCodeCourse(String code) {
+        for (int x=0; x <=listCourse.size()-1; x++) {
+            if (code.equals(listCourse.get(x).getCode())) {
+                return listCourse.get(x);
+            }
+        }
+        return null;
+    }
+
+    @Override
+    public boolean updateSksByCode(String code, int jumlahSks) {
+        boolean kebenaran = true;
+        for (int x=0; x <=listCourse.size()-1; x++) {
+            if (code.equals(listCourse.get(x).getCode())) {
+                kebenaran = false;
+                listCourse.get(x).setJumlahSks(jumlahSks);
+            }
+//            else {
+//
+//            }
+        }
+        return kebenaran;
+    }
+
+    @Override
+    public boolean deleteCourseByCode(String code) {
+        boolean kebenaran = false;
+        for (int x=0; x <=listCourse.size()-1; x++) {
+            if (code.equals(listCourse.get(x).getCode())) {
+                listCourse.remove(listCourse.get(x));
+            }
+            else {
+                kebenaran = true;
+            }
+        }
+        return kebenaran;
+    }
+
+    @Override
+    public boolean cantAddCourseWithSameCode(String code) {
+        boolean kebenaran = false;
+        for (int x=0; x <=listCourse.size()-1; x++) {
+            if (code.equals(listCourse.get(x).getCode())) {
+                kebenaran = true;
+            }
+        }
+        return kebenaran;
+    }
+}
diff --git a/belajarbelajar/src/main/resources/application.properties b/belajarbelajar/src/main/resources/application.properties
new file mode 100644
index 0000000000000000000000000000000000000000..8b137891791fe96927ad78e64b0aad7bded08bdc
--- /dev/null
+++ b/belajarbelajar/src/main/resources/application.properties
@@ -0,0 +1 @@
+
diff --git a/belajarbelajar/src/main/resources/templates/add-course.html b/belajarbelajar/src/main/resources/templates/add-course.html
new file mode 100644
index 0000000000000000000000000000000000000000..e4000a6370025569bb2d2abda0ad2090ac24f026
--- /dev/null
+++ b/belajarbelajar/src/main/resources/templates/add-course.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
+    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
+    <title>Add Course</title>
+</head>
+<body>
+    <h2 th:text="'Course dengan code Course ' + ${code} + ' berhasil ditambahkan.'"
+    ></h2>
+    <a href="/course/viewAll">Kembali</a>
+</body>
+</html>
\ No newline at end of file
diff --git a/belajarbelajar/src/main/resources/templates/cant-add-course.html b/belajarbelajar/src/main/resources/templates/cant-add-course.html
new file mode 100644
index 0000000000000000000000000000000000000000..eb29d95644989d5a7ad621f8a54a9f1e9aacaff8
--- /dev/null
+++ b/belajarbelajar/src/main/resources/templates/cant-add-course.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
+    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
+    <title>Add Course</title>
+</head>
+<body>
+    <h2 th:text="'Course dengan code Course ' + ${code} + ' tidak bisa ditambahkan (code sudah digunakan untuk Course lain).'"
+    ></h2>
+    <a href="/course/viewAll">Kembali</a>
+</body>
+</html>
\ No newline at end of file
diff --git a/belajarbelajar/src/main/resources/templates/cant-delete-course.html b/belajarbelajar/src/main/resources/templates/cant-delete-course.html
new file mode 100644
index 0000000000000000000000000000000000000000..7e594ba6f3b8f154ad43d79f6b5ca5d6b9ba843a
--- /dev/null
+++ b/belajarbelajar/src/main/resources/templates/cant-delete-course.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
+    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
+    <title>Add Course</title>
+</head>
+<body>
+    <h2 th:text="'Course dengan code Course ' + ${code} + ' tidak bisa dihapus (course dengan code tersebut belum ditambahkan).'"
+    ></h2>
+    <a href="/course/viewAll">Kembali</a>
+</body>
+</html>
\ No newline at end of file
diff --git a/belajarbelajar/src/main/resources/templates/cant-update-course.html b/belajarbelajar/src/main/resources/templates/cant-update-course.html
new file mode 100644
index 0000000000000000000000000000000000000000..1833ef2ab1fc01b4da2b0f544e1c56b827f68e77
--- /dev/null
+++ b/belajarbelajar/src/main/resources/templates/cant-update-course.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+    <meta charset="UTF-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
+    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>
+    <title>Add Course</title>
+</head>
+<body>
+    <h2 th:text="'Course dengan code Course ' + ${code} + ' tidak bisa diupdate (course dengan code tersebut belum ditambahkan).'"
+    ></h2>
+    <a href="/course/viewAll">Kembali</a>
+</body>
+</html>
\ No newline at end of file
diff --git a/belajarbelajar/src/main/resources/templates/delete-course.html b/belajarbelajar/src/main/resources/templates/delete-course.html
new file mode 100644
index 0000000000000000000000000000000000000000..595a800c7b2f0c5e5b9bdac5bf54162aa1bb163b
--- /dev/null
+++ b/belajarbelajar/src/main/resources/templates/delete-course.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html lang="en" xmlns:th="http://thymeleaf.org">
+<head>
+    <meta charset="UTF-8" />
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>View Deleted Course</title>
+</head>
+<body>
+    <h2>Informasi Course</h2>
+    <h3 th:text="'Course Dengan Code ' + ${code} + ' Ini Berhasil Terhapus'"></h3>
+    <a href="/course/viewAll">Kembali</a>
+</body>
+</html>
\ No newline at end of file
diff --git a/belajarbelajar/src/main/resources/templates/update-sks-course.html b/belajarbelajar/src/main/resources/templates/update-sks-course.html
new file mode 100644
index 0000000000000000000000000000000000000000..d26386b7d63935304ef09b10cd5985b2cdf80fe6
--- /dev/null
+++ b/belajarbelajar/src/main/resources/templates/update-sks-course.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html lang="en" xmlns:th="http://thymeleaf.org">
+<head>
+    <meta charset="UTF-8" />
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>View Updated Course</title>
+</head>
+<body>
+    <h2>Informasi Course</h2>
+    <h3 th:text="'Code Course   : ' + ${course.code}"></h3>
+    <h3 th:text="'Nama Course   : ' + ${course.nameCourse}"></h3>
+    <h3 th:text="'Jumlah SKS Course Setelah Di Update   : ' + ${course.jumlahSks}"></h3>
+    <h3 th:text="'SKS ' + ${course.nameCourse} + ' Berhasil Terupdate'"></h3>
+    <a href="/course/viewAll">Kembali</a>
+</body>
+</html>
\ No newline at end of file
diff --git a/belajarbelajar/src/main/resources/templates/view-course.html b/belajarbelajar/src/main/resources/templates/view-course.html
new file mode 100644
index 0000000000000000000000000000000000000000..77767bc42a88cb2d2d20d13ab773331a15ce8e00
--- /dev/null
+++ b/belajarbelajar/src/main/resources/templates/view-course.html
@@ -0,0 +1,17 @@
+<!DOCTYPE html>
+<html lang="en" xmlns:th="http://thymeleaf.org">
+<head>
+    <meta charset="UTF-8" />
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>View Course</title>
+</head>
+<body>
+    <h2>Informasi Course</h2>
+    <h3 th:text="'Code Course   : ' + ${course.code}"></h3>
+    <h3 th:text="'Nama Course   : ' + ${course.nameCourse}"></h3>
+    <h3 th:text="'Deskripsi Course   : ' + ${course.description}"></h3>
+    <h3 th:text="'Jumlah SKS Course   : ' + ${course.jumlahSks}"></h3>
+    <a href="/course/viewAll">Kembali</a>
+</body>
+</html>
\ No newline at end of file
diff --git a/belajarbelajar/src/main/resources/templates/viewall-course.html b/belajarbelajar/src/main/resources/templates/viewall-course.html
new file mode 100644
index 0000000000000000000000000000000000000000..03b89d959acff955d8d8fb4ea18ba5feb1242563
--- /dev/null
+++ b/belajarbelajar/src/main/resources/templates/viewall-course.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<html lang="en" xmlns:th="http://thymeleaf.org">
+<head>
+    <meta charset="UTF-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge">
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+<title>View All Course</title>
+</head>
+<body>
+    <h2>Daftar Seluruh Course</h2>
+    <div th:each="course: ${listCourse}">
+        <h3 th:text="'Code Course   : ' + ${course.code}"></h3>
+        <h3 th:text="'Nama Course   : ' + ${course.nameCourse}"></h3>
+        <h3 th:text="'Deskripsi Course   : ' + ${course.description}"></h3>
+        <h3 th:text="'Jumlah SKS Course   : ' + ${course.jumlahSks}"></h3>
+    </div>
+    <a href="/course/viewAll">Kembali</a>
+</body>
+</html>
\ No newline at end of file
diff --git a/belajarbelajar/src/test/java/apap/tutorial/belajarbelajar/BelajarbelajarApplicationTests.java b/belajarbelajar/src/test/java/apap/tutorial/belajarbelajar/BelajarbelajarApplicationTests.java
new file mode 100644
index 0000000000000000000000000000000000000000..b3b39d1f7448b04164fd73fb73ca087a079ea820
--- /dev/null
+++ b/belajarbelajar/src/test/java/apap/tutorial/belajarbelajar/BelajarbelajarApplicationTests.java
@@ -0,0 +1,13 @@
+package apap.tutorial.belajarbelajar;
+
+import org.junit.jupiter.api.Test;
+import org.springframework.boot.test.context.SpringBootTest;
+
+@SpringBootTest
+class BelajarbelajarApplicationTests {
+
+	@Test
+	void contextLoads() {
+	}
+
+}