Extensions and C / Java solutions for some problems