\documentclass[thesis,doublespace]{piet}
\begin{document}
\frontmatter
\author{John Smith}
\title{Design, fabrication, and performance analysis of solar thermal water heater using phase change material}
\faculty{Faculty of Engineering (Mechanical)}
%%%%%
%You can omit the fifth or fourth supervisor or both
%%%%
\primarysupervisor{Engr. XYZ}
\secondarysupervisor{Asst. Prof. XYZ}
\thirdsupervisor{Asst. Prof. Dr. Muhammad Sana Ullah Sahar}
\degreetitle{B.Sc. Mechanical Engineering}
\dean{Den's name}
\include{parts/abstract}
\include{parts/acknow}
\include{parts/dedication}
\abstractpagetrue{}
\acknowpagetrue{}
\dedipagetrue{}
\figurespagetrue{}
\tablespagetrue{}
\committeetrue{}
%% Front matter commands
\beforeabstract{}
\afterabstract{}
\afterpreface{}
\mainmatter
\include{parts/ch1}
\include{parts/ch2}
\include{parts/ch3}
\phantomsection
\onehalfspacing
\bibliographystyle{apacite}
\nocite{*}
\addcontentsline{toc}{chapter}{\bibname}
\bibliography{bib}
\doublespacing
% If you have no appendices, then comment the line below out. However, if you have appendices then you also need to specify the ToC depth. That is, if you want individual appendices listed in the ToC, then change the value below from none to section. So, the options are HBKUAppendix{none | section} .
% none - will provide a heading, "Appendices" in the ToC
% section - will provide the heading and list the appendices
\HBKUAppendix{section}
\include{parts/FirstAppendix}
\include{parts/SecondAppendix}
\end{document}