prepared tex skeleton for questions 3 and 4