Adding fractions solution. TODO - Convert it to idiomatic scala