small program for the java module at univerisity