Initial project with gray convertion