Solutions to various practice problems