Step 1 - type of attr should be a function