calculator in prolog v.0.1