How to add a class (basic class search/register)