Thank you for your answer but seeing as how I'm a beginner at this, I'm trying to work out the code by myself to better my skills and understanding