some codes for interview test!