reformatted sample code
changed radio button to be based on value rather than index