Small java project