Fixing bugs on Ex 6