changed prototypes, declarations, etc; compiles and runs small HM