init is now a class method
added init method
implemented missing init method