the final project from JD class, I made a frequency analyzer (simple)