Adding attributes and centerAt method