submit midterm project

some minor bug, unable to generate result properly under output.rb file