Rest of hw3.