<?
class Car {
    private 
$brand;
    private 
$model;
    private 
$horsepower;
    private 
$kilometers;

    public function 
__construct($brand,$model)
    {
        
$this->brand        =    $brand;
        
$this->model        =    $model;
        
$this->kilometers    =    0;
    }

    public function 
setHorsePower($hp)
    {
        if( (int)
$hp 0)
        {
            
$this->horsepower    =    (int)$hp;
        }
        else
        {
            throw new 
Exception("Horse Powe should be an integer greater than zero.");
        }
    }

    public function 
walk($distance)
    {
        if( (int)
$distance )
        {
            
$this->kilometers=-$distance;
        }
        else
        {
            throw new 
Exception("Distance can't be a negative or null number.");
        }
    }
}
?>