rpearce: Adding initial test and implementation for reading from stdin