implement a simple analyzer