All my work in java