template code from an assignment to get started