Improved upon Interest code for practice