A primer in density functional theory