adding three classes