refacrt Profile.rb