Solutions to #36-49