Create Tools.java

Created a set of functions for use in the tutorials, for convenience and consistency.