\documentclass[12pt, a4paper]{report}
%%these packages are not really necessary if you dont need the code and proofs environments
%%so if you like you can delete from here till the next comment
%%note that there are some examples below which obviously won't work once you remove this part
\usepackage{verbatim}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{syntax}
\usepackage{fyp}
\usepackage{textcomp}
\usepackage{multirow}
\usepackage{booktabs}
\usepackage{algpseudocode}
\usepackage{algorithm}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{geometry}
\usepackage{setspace}
\usepackage{enumerate}
\usepackage{stmaryrd}
\usepackage{ragged2e}
\newcommand{\myGray}[1]{\textcolor{gray}{#1}}
\usepackage[labelfont=bf]{caption}
\usepackage[openbookmark=true]{hyperref}
\usepackage{bookmark}
%%this environment is useful if you have code snippets
\newenvironment{code}
{\footnotesize\verbatim}{\endverbatim\normalfont}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
%%the following environments are useful to present proofs in your thesis
\theoremstyle{definition}
\newtheorem{definition}{Definition}[section]
\theoremstyle{definition}%plain}
\newtheorem{example}{Example}[section]
\theoremstyle{definition}%remark}