Made parseSelect private
Added a main class