Rat class created specs passing
refactored code