Added support for doubles to NumberGenerator1.java