added function as param. removed main in fractions
added more c files