added coinRead and main func