Property Accessor/Mutator

sub name {
  my $self = shift;
  return $self->{name};
}
sub name {
  my $self = shift;

  if(@_) {
    $self->{name} = shift;
  }

  return $self->{name};
}