I WAS PLAYING BADMINTON WITH MY FRIENDS WHEN MY CLASSMATES CAME.

1. I was playing badminton with my friends when my classmates came.