Adding the code from the positioning section