changed the initialisation of Square