OS homework 1. Implementing basic cat function.