Added an instance variable and used .center method