Java implementation of the Area gem