Text this: Mathematical modeling and simulation of an electric vehicle