homework of switch