write method nextYear that returns balance after a year at a given interest rate