using decorator for class algorithm addition, changed constructor args