list all electives in groups properly