made the methods/template for the assignment