Got solution for target 3 working