first design and logic