Revert "Revert "class credit""

This reverts commit 2d6d641d24c9ae4048ad11d17cb191cd876c01dd.