Code edited by Akash