For ECS170 Assignment