Refactored assignment 1 from 3 to 2 lines.