public List<Account> getAccounts() {

		List<Account> accounts = new ArrayList<>();

		try (BufferedReader br = new BufferedReader(new InputStreamReader(
				new FileInputStream(filePath)))) {

			String line = br.readLine();
			while (line != null) {
				line = line.trim();
				if (!line.isEmpty()) {
					String[] split = line.split(",");
					int accNum = (int) Double.parseDouble(split[0]);
					String name = split[2];
					int bal = (int) Double.parseDouble(split[1]);
					String houseNo = "";
					String pin = "";
					if (split.length > 3) {
						houseNo = split[3];
						pin = split[4];
					}

					Customer c = new Customer(name, houseNo, pin);
					Account acc = new Account(bal, accNum, c);
					accounts.add(acc);
				}
				line = br.readLine();
			}

		} catch (FileNotFoundException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		return accounts;
	}