implementation of sequential logic 5391301