Lectures on rings and modules