added comments and set sequence method
added comments