Added some comments on how I will complete flush() method.