function [ output_args ] = Tutorial1( input_args )

%create the JAVA object
omero = omeroconnect.Main;

%connect to the server as user X
omero.initConnectionDetails('cmpdartsvr1.cmp.uea.ac.uk', 'avondoj', 'avondo');

%get the whole database belonging to this user
omerodatabase = omero.getDatabase();

%print it to screen
omero.printDatabase(omerodatabase);

%now save the imageid = 1 
%to our local machines C:\MyData\ directory
%as an OME-TIFF.
omero.saveImage(1, 'C:\MyData\');

%now close the connection
omero.closeConnection();