Partially implememnted Brute.java