Implemented __construct() and __destruct()