clear() can be invoked anytime, input / output implemented