Using depedency injection