Added scanf and copyright.