working on design and regular expressions