Some simple common tool (write in java)