understanding object-oriented programming will help you see the world as programmer does it'll help you really know your codenot just what' happening line by linebut also the bigger concepts behind it knowing the logic behind classes will train you to think logically so you can write programs that effectively address almost any problem you encounter classes also make life easier for you and the other programmers you'll need to work with as you take on increasingly complex challenges when you and other programmers write code based on the same kind of logicyou'll be able to understand each other' work your programs will make sense to many collaboratorsallowing everyone to accomplish more creating and using class you can model almost anything using classes let' start by writing simple classdogthat represents dog--not one dog in particularbut any dog what do we know about most pet dogswellthey all have name and age we also know that most dogs sit and roll over those two pieces of information (name and ageand those two behaviors (sit and roll overwill go in our dog class because they're common to most dogs this class will tell python how to make an object representing dog after our class is writtenwe'll use it to make individual instanceseach of which represents one specific dog creating the dog class each instance created from the dog class will store name and an ageand we'll give each dog the ability to sit(and roll_over()dog py class dog() """ simple attempt to model dog "" def __init__(selfnameage)"""initialize name and age attributes ""self name name self age age def sit(self)"""simulate dog sitting in response to command ""print(self name title(is now sitting "def roll_over(self)"""simulate rolling over in response to command ""print(self name title(rolled over!"