Created function bodies in common fun c file