add function for work with fractions