creating methods to parse hashes and APIs