clean and better awnser for p1 ruby