Added the required boolean function to Project two