Two Essays in Financial Engineering