All the variables except $units were defined, but were left with null values.
You can give bear values when you create the object with the __constructor function. Inside the class, create a function like this:
function __constructor($name='Bob', $weight=100)
{
$this->name = $name;
$this->weight = $weight;
}
This way, when you create a new Bear() object, it's given a default name and weight, but you can pass new values to it when you create a new Bear object by doing something like this:
$bear = new Bear('Yogi',200);
Hope this helps you!