Started writing agda version