adding input checker class