Solved 4a through 4d