Designing of simple sequential circuits