Recreation of the Unix function "|" to pipe together different functions for ECE357 (problem set 4)