Java Vito's Family Solution