functionallity for creating simple setter method for selection
changed method signature
first working version with selection