Finished typing up both shell functions, need to code review + analyze what they do