Set method implementation added