calculator - design implemented