Determining last semester you can take a class is now working