Algorithm Design 1 class