Implemented Spinner class