it took him until spring before he finally worked up the courage to ask if he could buy her an ice cream , and as the end of the school year approached they began to spend more and more time together .