public static int calcSoftTwo(Session aSession, Lecture aLecture) {
		int penalty = 0;
		Instructor anInstructor = aLecture.getInstructor();
		if(anInstructor != null){
			List<Lecture> coursesTaughtByInstructor = anInstructor.getInstructedLectures();
			for(int i = 0; i < coursesTaughtByInstructor.size(); i++){
				Session session1;
				session1 = coursesTaughtByInstructor.get(i).getSession();
				if(session1==null){
					continue;
				}
				if(session1.getDay().equals(aSession.getDay())&& !(session1.getRoom().equals(aSession.getRoom()))){
					double timeDiff = session1.getTime().getDifference(aSession.getTime());
					if(timeDiff == 0.0){
						penalty+=20;						
					}
					if(timeDiff > 0.0){
						if(timeDiff < (double)aSession.getLength()){
							penalty+=20;
						}
					}
					else{
						if(Math.abs(timeDiff) < (double)session1.getLength()){
							penalty+=20;
						}
					}
				}
			}
		}
		return penalty;
	}