added loan and investment models
wrote model tests