Working on CosineRule Class