added give hint and added instance variables