added init() function to header file