Initial draft using stdin and stdout to communicate