cleaned up the code and made a header file