added others function and updated the whole code

added others function and updated the whole code