Can i take these 3 bunches of code below

That's why documentation and comments are so important.