Adding the new Offset.java sent by Bingyi