Code for EC330