Making the exercise independent of Dom and labelling the class name as noun