Design patterns sample using a calculator example.