adding generics to Stroke and Brush