refactored multiples class