Wrote constructor and hit method