modify code to use utility functions
Merge branch 'master' of https://github.com/kevinlmh/MatchingSerial