initial commit
some logic added