# 1. Create the Tex source from a template¶

Open MIAU and unfold the checkin tree so that you can see the section where you want to create the new program problem. For this tutorial, we assume the section is content/test/problems, but you can choose a different one of course. The MIAU window should look like the following (click on the image to get a larger view):

Right-click on the section and select "New > Mumie Document or Course" in the popup menu:

In the wizard that opens, select "Building Blocks (TeX) > Problem > Programming problem" and enter a name for the new document. In the problem we delevelop in this tutorial the user has to calculate the minimum in an array of numbers, so we choose the name "minimum_in_array":

Click "Next". In the window that opens then, select a language:

Click "Next".:

Click "Finish". MIAU creates a skeleton for the Tex source and loads it in the editor:

The skeleton creates some placeholder items that we replace by the real entries. First, switch to the metainfo tab and provide a suitable name and description:

Return to the "Content Block" tab. Here is the code you should see:

\title{Enter title here}

Describe problem here...

public static int methodToImplement (int[] array) {  % <-- Change this
}

\prgwrapper{net.mumie.test.program.SampleWrapper}      % <-- Change this
\prgevaluator{net.mumie.test.program.SampleEvaluator}  % <-- Change this



We change the title, the text below the title, and the prganswer environment which creates the input field for the user:

\title{Minimum in array}

Write a Java method which computes and returns the minimum number of an array
of integer numbers. If the array is empty, the largest possible integer number
is to be returned. Complete the following code fragment:

public static int getInt (int[] array) {
}