Added electives and changed name to patterns