diff --git a/main.c b/main.c
index b5fba0682b01a1005462aa24bf4ac2f21227e156..c7734193cbab61b63176921a3bb83710917c5b8e 100644
--- a/main.c
+++ b/main.c
@@ -1,6 +1,51 @@
 #include "alloc.h"
+#include <stdio.h>
+#include <string.h>
+#include <stdlib.h>
 
-int main()
+int main(int argc, char *argv[])
 {
+  int tok,tmp,idx=0;
+  FILE * f;
+  char r_size[1000];
+
+
+  if((f=fopen(argv[1],"r"))==NULL)
+  {
+    printf("File open error.\n");
+    return -1;
+  }
+  fgets(r_size,sizeof(r_size),f);
+
+  char *ptr=strtok(r_size," ");
+  tok=atoi(ptr);
+  char **command=(char**)malloc(sizeof(char*)*tok);
+  ptr=strtok(NULL," ");
+
+  for(int i=0;i<tok; i++)
+  {
+    memset(r_size,'\0',sizeof(r_size)); // idx
+    fgets(r_size,sizeof(r_size),f); // get read
+    r_size[strlen(r_size)-1]='\0'; // End of string is null
+
+    if(r_size[0]=='s'){
+      command[idx] = make_malloc(strlen(r_size+1));
+      strcpy(command[idx++],r_size+1);
+    }
+  }
+
+  read_start=start;
+
+    while(read_start){
+
+        printf("free : %d / size : %d ", read_start->free,read_start->size);
+
+        if(!read_start->free)
+            printf("%s\n",read_start->offset);
+
+        read_start=read_start->next;
+        
+  }
+
   return 0;
 }