Switch to .prototype for classes