fixing course constructor