implemented factory for price strategies.