Refactored algorithm for step1_variables to make the code more readable, removed a confusing part of the Relation API where the renameAttribute function was returning an array, updated Relation unit tests