Fixed PEMDAS. New error comes with last function