Solutions to the rest of tasks