Initial working version of the project in Java