Wrote another List extension function