removing unused model
calculating credits earned