Move attributes to prototype