Created InputMatcher object and constructor functions.