Declaring function calculateStings and giving it a parameter of weight where the information that is passed is stored