Added requirement as comment in the beginning of the code.