Revision 2 - term is now a user entered variable