fixed part 1 to not use java bc im an idiot