Can you give me a step by step solution as I cannot understand all the script in the online answers I have found. Thanks