importing rock typekits and refactoring the code