adds classes to programs