static void init()
	{
		try{
		 p = new PrintWriter("bitvals.txt");
		}
		catch (Exception e)
		{
			System.out.println("Can't open the file");
		}
		try{
			u = new URL("https://coinbase.com/api/v1/prices/buy");
		}
		catch (Exception e)
		{
			System.out.println("URL ain't right");
		}
		try{
		h = (HttpURLConnection) u.openConnection();;
		}
		catch (Exception e)
		{
			System.out.println("Can't connect");
		}
		try{
		if(h.getResponseCode()!=200)
		{
			System.out.println("Can't connect in a different way");
		}
		}
		catch (Exception e)
		{
			System.out.println("Can't connect in a different way");
		}
		try{
			input = new BufferedReader( new InputStreamReader(h.getInputStream()));
		}
		catch (Exception e)
		{
			System.out.println("Can't open reader for input");
		}
		sb = new StringBuilder();
	
	}