ugly answer to Q 3