finished the code for part one. still need to test it