Solutions to extension exercises