Added norm function to repository