solutions for Absolute Java 5