Finished solution for target 5