miniproject phase2 final version