Solution for target 1