Can we combine this code then and add a comment what it's doing?