added footer and also started first function