First version of spacecharge class.