Refactor sides method into attribute and attr_reader