solutions for practice problems