Why am I getting MyObj is not defined? I can't tell why this is not passing

From javascript first chapter:

//Setup
var myObj = {
  gift: "pony",
  pet: "kitten",
  bed: "sleigh"
};

function checkObj(checkProp) {
 if(myObj.hasOwnProperty(checkProp)){
  return MyObj[checkProp];
 }
 else {
   return "Not Found";
 }
}

// Test your code by modifying these values
checkObj("pet");

myObj in if, MyObj in return. misspeling.