public static void main(String[] args) {
        int count;
        String message = "";
        String result = "";
        
        checking = new Account("",200,Account.ACCOUNT_CHECKING);
        savings = new Account("",1000,Account.ACCOUNT_SAVINGS);
        // Set up name database, normally this ould be done in a much
        // more sophisticated way.
        System.out.println("Starting the ATM server...");
        try {
            ServerSocket ss = new ServerSocket(1024);
            count = 1;
            while (true) {
                // Set upt the streams which the clients will access
                Socket sock = ss.accept();
                InputStream is = sock.getInputStream();
                BufferedReader bf = new BufferedReader(new InputStreamReader(is));
                OutputStream os = sock.getOutputStream();
                PrintWriter pw = new PrintWriter(os, true);
                System.out.println("Serviced connection " + count);
                //Read name request
                message = bf.readLine();
                
                // The message should be composed as follows:
                // first character - operation
                // second character - account type (for deposit, withdraw, inquiry)
                // the rest - the amount (0 if inquiry)
                switch (message.charAt(0))
                {
                    // Login
                    case 'l':
                        result = login(message);
                        break;
                    // Deposit
                    case 'd':
                        result = deposit(message);
                        break;
                    // Withdraw
                    case 'w':
                        result = withdraw(message);
                        break;
                    // Inquiry
                    case 'i':
                        result = inquiry(message);
                        break;
                    // Transfer
                    case 't':
                        result = transfer(message);
                        break;
                }
                pw.println(result);
                count++;
            }
        } catch (Exception e) {
            System.out.println("Problem setting up connection" + e);
        }
    }