Simplified solution to 2nd assignment