Lectures on dynamics of the shell model