Putting everything together to build a CNN