Same class & methods implemented in both Ruby & Java