translating basic things like function definitions to java