A class implementation of a Neural Net in Java