Simple circuit simulator