Created input handler class