generating exam dynamically based on form input