miniproject Phase2 final version