Simple experience where i try to implement closure in c