This is my final submit for prog assignment 2