Updated LeoFSSample.java with new methods