Project solution for the two problems received by email.