implemented sin0 + debug main