added factory method for the strategy creation