implemented strategy in code