Assignment 5: All warning fixed.