public static Bookmark loadData() throws FileNotFoundException, IOException{
		Bookmark loadedBookmark = null;
		ObjectInputStream input = null;

		//Open input stream
		input = new ObjectInputStream(new FileInputStream("bookmarks.data"));


		if(input != null){

			//Read bookmark from file
			Object obj = null;
			try {
				obj = input.readObject();
			} catch (ClassNotFoundException e1) {
				System.out.println("Trying to load an object of unknown class type.");
			} catch (IOException e1) {
				e1.printStackTrace();
			}
			if( (obj != null) && (obj instanceof Bookmark) ){
				loadedBookmark = (Bookmark)obj;
			}

			//Close input stream
			try {
				input.close();
			} catch (IOException e) {
				System.out.println("Could not close file.");
			}
		}		
		return loadedBookmark;
	}