is my lack of scala style experience showing? :)