[day2] - Adding custom partition function