Transform data from horizontal to vertical. #6.