constructor for hits is written and compiles