diff --git a/build.xml b/build.xml
index 89090d1c99e7364c1ce56099bdaa344fd427cbe8..846c88669fb0dcfea4916089c42a14271cf823ad 100644
--- a/build.xml
+++ b/build.xml
@@ -5,6 +5,14 @@
   <property name="src" location="src"/>
   <property name="build" location="build"/>
   <property name="dist" location="dist"/>
+   <property name="lib" location="lib"/>
+
+  <!-- Classpath for dependencies -->
+  <path id="classpath">
+    <fileset dir="${lib}">
+      <include name="*.jar"/>
+    </fileset>
+  </path>
 
   <!-- Initialize build directories -->
   <target name="init">
@@ -14,15 +22,15 @@
 
   <!-- Compile source code -->
   <target name="compile" depends="init" description="Compile the source code">
-    <javac srcdir="${src}" destdir="${build}" debug="true" includeantruntime="false"/>
+    <javac srcdir="${src}" destdir="${build}" debug="true" includeantruntime="false" classpathref="classpath"/>
   </target>
-
   <!-- Package the project into a jar file -->
   <target name="dist" depends="compile" description="Generate the distribution jar">
     <jar jarfile="${dist}/kdiv.jar" basedir="${build}">
       <manifest>
-        <!-- Replace 'kdiv.Main' with the full name of main class -->
+        <!-- idk but its working -->
         <attribute name="Main-Class" value="kdiv.Main"/>
+        <attribute name="Class-Path" value="lib/commons-math3-3.6.1.jar"/>
       </manifest>
     </jar>
   </target>
@@ -34,8 +42,16 @@
   </target>
   
   <!-- Optional: Run the jar (if needed) -->
+
   <target name="run" depends="dist" description="Run the application">
-    <java jar="${dist}/kdiv.jar" fork="true"/>
+    <java fork="true" classname="kdiv.Main">
+      <classpath>
+        <pathelement location="${dist}/kdiv.jar"/>
+        <fileset dir="${lib}">
+          <include name="*.jar"/>
+        </fileset>
+      </classpath>
+    </java>
   </target>
 
 </project>
diff --git a/lib/commons-math3-3.6.1.jar b/lib/commons-math3-3.6.1.jar
new file mode 100644
index 0000000000000000000000000000000000000000..0ff582cfcb687e5c9608457628f78e9a782be932
Binary files /dev/null and b/lib/commons-math3-3.6.1.jar differ