C and Java source code added