Meh.. lets do it in java