exam preparation and refactroing