Fixed bug with init->begin

Changed class declaration to call begin instead of init