Added constructor that takes String name as a parameter.