lecture basic controller