Started on c version of ass1