Created constructor. Made "name" prop to be getter only