Improved answer to Q1. Added answer to Q2.