A library in Massachusetts is helping residents learn digital literacy after receiving a federal grant.