added scale.java