Example Implementation for the Plista Contest in Java