This is one of the first piece of code I written when i began to learn SC (precisely, the piece number 8)