Add class to props(), and add print function