function problem3() {
    var area,
        outputField,
        rectangleHeight,
        rectangleWidth;

    console.log('Problem 3');
    rectangleWidth = document.getElementById('problem-3-width').value;
    rectangleHeight = document.getElementById('problem-3-height').value;
    outputField = document.getElementById('problem-3-output');

    area = rectangleHeight * rectangleWidth;
    console.log('The area of a rectangle with width ' + rectangleWidth + ' and height ' + rectangleHeight);
    console.log('is ' + area);
    console.log('\n');

    outputField.innerHTML = 'The area is : ' + area;
}