Classes logic updated

updated class logic for independent study classes