__init__ sets all self attributes