Added whale program modified per assignment 3.