an investigation of how to write typewriter app