Added getValue and setValue methods