Add apply for parameterised types and examples