Added a constructor that takes a name