Create BooleanSource.java

Class was supplied by the authors of the text.