set up auto-create courses method in session.rb