Restricting Domain of Cosine and tangent Function - Prepare for Exams