refactoring
inner spinner class
inner classes