functionality done

loans implemented