made world an input to typing, and split work into files