Added exceptions and functionality for loans - assignment 3