added mathematical operator and else if statement