basic electrochemistry implemented