Solution created finally