tying things together and also a basic tempalte