code of whole application