Add prerequisites for classes