refactor to remove similar functions
Merge pull request #10 from JonathanPrince/likeness

refactor to remove similar functions