update practice.rb

introduce section and method