update 2

still working on getting the functions going
update 3

Plot works, but I can't get it to react to input