Implemented other methods in Grafi.java