Building the deep learning model