Lattices and Codes: A Course Partially Based on Lectures