homework6: change data types