added loan class in seperate file