Synced the methods with the classdiagram.