More scala recipe stuff