created loan entity, created abstract repository