implemented lendings controller - yey :)