Solutions to practice problems