method wrapupMarkup() has been completed. Not tested yet.